From 1f1172b14545aa7b5e5c5f7a1aa6080fe1c9c2ec Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Mon, 5 Jun 2023 07:57:41 +0200 Subject: [PATCH 1/3] Run lint_python tests on branches: [development, master] --- .github/workflows/lint_python.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lint_python.yml b/.github/workflows/lint_python.yml index fff9533a..bffa53b9 100644 --- a/.github/workflows/lint_python.yml +++ b/.github/workflows/lint_python.yml @@ -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 From 2e86bc83f3dc96af9709f59bfae890a1a2807e40 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Mon, 5 Jun 2023 08:04:25 +0200 Subject: [PATCH 2/3] codespell --quiet-level=3 --- .github/workflows/lint_python.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/lint_python.yml b/.github/workflows/lint_python.yml index bffa53b9..a2db53ba 100644 --- a/.github/workflows/lint_python.yml +++ b/.github/workflows/lint_python.yml @@ -12,7 +12,8 @@ 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 . - name: "Ruff: All issues" @@ -20,9 +21,8 @@ jobs: - 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 From 3c065d89f6a17e95a393cdfa4156bf63647c3cdc Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Mon, 5 Jun 2023 08:07:34 +0200 Subject: [PATCH 3/3] ruff . --format=github --select=E9,F63,F7,F82,PLE,YTT . --- .github/workflows/lint_python.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/lint_python.yml b/.github/workflows/lint_python.yml index a2db53ba..d4bac874 100644 --- a/.github/workflows/lint_python.yml +++ b/.github/workflows/lint_python.yml @@ -15,7 +15,7 @@ jobs: - 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"