Fix pre-commit #485
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
name: lint_python | |
on: [pull_request, push] | |
jobs: | |
lint_python: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: 3.13 | |
allow-prereleases: true | |
- run: pip install --upgrade pip ruff setuptools wheel | |
- name: "Ruff: Show stopper (must-fix) issues" | |
run: ruff check --select=E9,F63,F7,F82,PLE,YTT | |
- name: "Ruff: All issues" | |
run: ruff check --exit-zero --select=ALL --statistics --target-version=py38 . | |
- run: ruff format | |
- name: "Ruff: All fixable (ruff --fix) issues" | |
run: ruff check --exit-zero --select=ALL --ignore=ANN204,COM812,ERA001,RSE102 | |
--statistics --target-version=py38 . || true | grep "\[\*\]" | |
- run: pip install codespell mypy pytest safety | |
- run: codespell --quiet-level=1 # --ignore-words-list="" --skip="*.css,*.js,*.lock" | |
- run: pip install -r requirements.txt || pip install --editable . || pip install . || true | |
- run: mkdir --parents --verbose .mypy_cache | |
- run: mypy --ignore-missing-imports --install-types --non-interactive . | |
- run: pytest --doctest-modules . || true | |
- run: pytest . || true | |
- run: pip --version | |
- run: python -m pip --version | |
- run: safety check || true |