chore(deps): update pre-commit hook asottile/pyupgrade to v3.16.0 (#142) #549
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
name: lint | |
on: | |
push: | |
branches-ignore: | |
- renovate/** | |
- deepsource-fix-* | |
pull_request: {} | |
jobs: | |
ruff: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.11" | |
- uses: Trim21/setup-poetry@dist/v1 | |
- uses: Trim21/install-poetry-project@dist/v1 | |
- name: ruff | |
run: ruff check . --output-format=github | |
mypy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- uses: Trim21/setup-poetry@dist/v1 | |
- uses: Trim21/install-poetry-project@dist/v1 | |
- name: mypy | |
run: mypy ./ | |
pre-commit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- uses: Trim21/setup-poetry@dist/v1 | |
- uses: Trim21/install-poetry-project@dist/v1 | |
- uses: actions/cache@v4 | |
with: | |
path: ~/.cache/pre-commit | |
key: precommit-2-${{ env.PY }}-${{ hashFiles('.pre-commit-config.yaml') }} | |
restore-keys: precommit-2-${{ env.PY }}- | |
- name: pre-commit | |
run: pre-commit run --all-files --show-diff-on-failure && pre-commit gc |