chore(ci): from mypy to pyright #8
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Lint code and (optionally) apply fixes | ||
name: Lint code | ||
on: | ||
pull_request: | ||
push: | ||
branches: [main] | ||
schedule: | ||
- cron: "0 0 * * 1" # Every monday | ||
workflow_dispatch: | ||
jobs: | ||
auto-update: | ||
Check failure on line 13 in .github/workflows/lint.yml
|
||
uses: browniebroke/github-actions/.github/workflows/pre-commit-autoupdate.yml@v1 | ||
if: ${{ github.event_name != 'schedule' || github.event_name != 'workflow_dispatch' }} | ||
secrets: | ||
gh_pat: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} | ||
with: | ||
config_path: ".pre-commit-config.yaml" | ||
python_version: "3.11" | ||
branch_name: "update/pre-commit-hooks" | ||
pull_request_title: "chore(deps): update pre-commit hooks" | ||
commit_message: "chore(deps): update pre-commit hooks" | ||
pre-commit: | ||
runs-on: ubuntu-latest | ||
if: ${{ github.event_name != 'schedule' }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.11' | ||
- uses: pre-commit/action@v3.0.0 | ||
- uses: pre-commit-ci/lite-action@v1.0.1 | ||
if: always() | ||
with: | ||
msg: 'chore(fmt): auto fixes from pre-commit hooks' |