Skip to content

Commit

Permalink
lint_python.yml: ruff check and ruff format
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss authored Aug 24, 2024
1 parent fb8c0ef commit 5eceeb4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/lint_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ jobs:
- name: "Ruff: Show stopper (must-fix) issues"
run: ruff check --select=E9,F63,F7,F82,PLE,YTT --output-format=github
- name: "Ruff: All issues"
run: ruff --exit-zero --select=ALL --statistics --target-version=py37 .
run: ruff check --exit-zero --select=ALL --statistics --target-version=py38
- name: "Ruff: All fixable (ruff --fix) issues"
run: ruff --exit-zero --select=ALL --ignore=ANN204,COM812,ERA001,RSE102
--statistics --target-version=py37 . | grep "\[\*\]"
- run: pip install black codespell mypy pytest safety
- run: black --check . || true
run: ruff check --exit-zero --select=ALL --ignore=ANN204,COM812,ERA001,RSE102
--statistics --target-version=py38 . | grep "\[\*\]"
- run: ruff format || true
- run: pip install codespell mypy pytest safety
- run: codespell
- run: pip install -r requirements.txt || pip install --editable . || pip install . || true
- run: mkdir --parents --verbose .mypy_cache
Expand Down

0 comments on commit 5eceeb4

Please sign in to comment.