Skip to content

Commit

Permalink
Merge pull request #365 from cclauss/patch-1
Browse files Browse the repository at this point in the history
Run lint_python tests on branches: [development, master]
  • Loading branch information
Z4nzu authored Jul 17, 2023
2 parents 0bf9f1f + 3c065d8 commit 1d6ae18
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/lint_python.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: lint_python
on:
pull_request:
branches: [master]
branches: [development, master]
push:
branches: [master]
branches: [development, master]
jobs:
lint_python:
runs-on: ubuntu-latest
Expand All @@ -12,17 +12,17 @@ jobs:
- uses: actions/setup-python@v4
with:
python-version: 3.x
- run: pip install --upgrade pip ruff setuptools wheel
- run: pip install --upgrade codespell pip ruff setuptools wheel
- run: codespell --quiet-level=3
- name: "Ruff: Show stopper (must-fix) issues"
run: ruff . --select=E9,F63,F7,F82,PLE,YTT --show-source .
run: ruff . --format=github --select=E9,F63,F7,F82,PLE,YTT .
- name: "Ruff: All issues"
run: ruff --exit-zero --select=ALL --statistics --target-version=py37 .
- 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: pip install black mypy pytest safety
- run: black --check . || true
- run: codespell
- 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 . || true
Expand Down

0 comments on commit 1d6ae18

Please sign in to comment.