From deffd658f05cc5cd12f9ef5b639e741b80580bd3 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sat, 24 Aug 2024 13:46:32 +0200 Subject: [PATCH 1/5] Keep GitHub Actions up to date with GitHub's Dependabot * [Keeping your actions up to date with Dependabot](https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot) * [Configuration options for the dependabot.yml file - package-ecosystem](https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#package-ecosystem) --- .github/dependabot.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 00000000..be006de9 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,13 @@ +# Keep GitHub Actions up to date with GitHub's Dependabot... +# https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot +# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#package-ecosystem +version: 2 +updates: + - package-ecosystem: github-actions + directory: / + groups: + github-actions: + patterns: + - "*" # Group all Actions updates into a single larger pull request + schedule: + interval: weekly From 66c63c338c148058df78bc7855a2162cc339be3f Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sat, 24 Aug 2024 14:34:19 +0200 Subject: [PATCH 2/5] lint_python.yml: Use the new ruff check syntax --- .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 fff9533a..7a2eb043 100644 --- a/.github/workflows/lint_python.yml +++ b/.github/workflows/lint_python.yml @@ -14,7 +14,7 @@ jobs: python-version: 3.x - run: pip install --upgrade pip ruff setuptools wheel - name: "Ruff: Show stopper (must-fix) issues" - run: ruff . --select=E9,F63,F7,F82,PLE,YTT --show-source . + run: ruff check --select=E9,F63,F7,F82,PLE,YTT --show-source - name: "Ruff: All issues" run: ruff --exit-zero --select=ALL --statistics --target-version=py37 . - name: "Ruff: All fixable (ruff --fix) issues" From fb8c0ef44b34a2c357271f83b19daec2f74611fd Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sat, 24 Aug 2024 14:37:11 +0200 Subject: [PATCH 3/5] ruff check --select=E9,F63,F7,F82,PLE,YTT --output-format=github --- .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 7a2eb043..dd1d5c2d 100644 --- a/.github/workflows/lint_python.yml +++ b/.github/workflows/lint_python.yml @@ -14,7 +14,7 @@ jobs: python-version: 3.x - 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 --show-source + 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 . - name: "Ruff: All fixable (ruff --fix) issues" From 5eceeb4d4479de3b577fae55508312e0d2b4dfd7 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sat, 24 Aug 2024 14:42:02 +0200 Subject: [PATCH 4/5] lint_python.yml: ruff check and ruff format --- .github/workflows/lint_python.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/lint_python.yml b/.github/workflows/lint_python.yml index dd1d5c2d..9b1b0d4b 100644 --- a/.github/workflows/lint_python.yml +++ b/.github/workflows/lint_python.yml @@ -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 From 7dde5be514c33e9c4df846264ab6f193b15d060e Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sat, 24 Aug 2024 14:44:33 +0200 Subject: [PATCH 5/5] Update lint_python.yml --- .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 9b1b0d4b..d7651510 100644 --- a/.github/workflows/lint_python.yml +++ b/.github/workflows/lint_python.yml @@ -28,4 +28,4 @@ jobs: - run: mypy --ignore-missing-imports --install-types --non-interactive . || true - run: pytest . || true - run: pytest --doctest-modules . || true - - run: safety check + - run: safety check || true