From 23db1f9d6e41e6a72e94960f770192af8c3d6974 Mon Sep 17 00:00:00 2001 From: Marian Steinbach Date: Tue, 7 Oct 2025 17:14:57 +0200 Subject: [PATCH 1/6] Update GitHub Actions to use latest versions --- .github/workflows/basic.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/basic.yml b/.github/workflows/basic.yml index d6ebad11..f02c3234 100644 --- a/.github/workflows/basic.yml +++ b/.github/workflows/basic.yml @@ -7,8 +7,8 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: YAMLLint - uses: docker://quay.io/giantswarm/yamllint:1.9 + uses: docker://gsoci.azurecr.io/giantswarm/yamllint:1.37.1 with: args: . From bb90a4d41d91e904d5145aadc8da858376794857 Mon Sep 17 00:00:00 2001 From: Laszlo Uveges Date: Tue, 4 Nov 2025 16:17:27 +0100 Subject: [PATCH 2/6] Bump bandit to 1.8.6 --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b8623cd5..ee69740e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -20,7 +20,7 @@ repos: - id: python-check-blanket-noqa # bandit - repo: https://github.com/PyCQA/bandit - rev: '1.7.4' + rev: '1.8.6' hooks: - id: bandit args: [ "-c", ".bandit" ] From c7c63a91733feabe7c8adb86ba641ea077a71aa1 Mon Sep 17 00:00:00 2001 From: Laszlo Uveges Date: Tue, 4 Nov 2025 16:27:42 +0100 Subject: [PATCH 3/6] Exclude venv cache for black --- .pre-commit-config.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ee69740e..7e38590b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,9 +1,9 @@ minimum_pre_commit_version: 2.17.0 repos: - - repo: meta - hooks: - - id: check-useless-excludes +# - repo: meta +# hooks: +# - id: check-useless-excludes # format Python code with black - repo: https://github.com/psf/black @@ -11,6 +11,7 @@ repos: hooks: - id: black language_version: python3 + exclude: ^/opt # accept proper type annotations only - repo: https://github.com/pre-commit/pygrep-hooks From bb847b53a0ba454c309b6c246e452c773821d785 Mon Sep 17 00:00:00 2001 From: Laszlo Uveges Date: Tue, 4 Nov 2025 17:09:58 +0100 Subject: [PATCH 4/6] Remove black --- .pre-commit-config.yaml | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7e38590b..4cae9fe6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,17 +1,9 @@ minimum_pre_commit_version: 2.17.0 repos: -# - repo: meta -# hooks: -# - id: check-useless-excludes - - # format Python code with black - - repo: https://github.com/psf/black - rev: 22.6.0 + - repo: meta hooks: - - id: black - language_version: python3 - exclude: ^/opt + - id: check-useless-excludes # accept proper type annotations only - repo: https://github.com/pre-commit/pygrep-hooks From d0ba487ea688356d55dd696bfa36e6cb75e0ec0c Mon Sep 17 00:00:00 2001 From: Laszlo Uveges Date: Tue, 4 Nov 2025 17:16:15 +0100 Subject: [PATCH 5/6] Try black with include for tests/ats only --- .pre-commit-config.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4cae9fe6..f3a472aa 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,6 +5,14 @@ repos: hooks: - id: check-useless-excludes + # format Python code with black + - repo: https://github.com/psf/black + rev: 22.6.0 + hooks: + - id: black + language_version: python3 + files: ^tests/ats + # accept proper type annotations only - repo: https://github.com/pre-commit/pygrep-hooks rev: v1.9.0 # Use the ref you want to point at From 6a03ab4e1ee03e410faea30431d234376cbefd0b Mon Sep 17 00:00:00 2001 From: Laszlo Uveges Date: Wed, 5 Nov 2025 09:46:54 +0100 Subject: [PATCH 6/6] Try again --- .pre-commit-config.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f3a472aa..2ceaf74e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,11 +7,12 @@ repos: # format Python code with black - repo: https://github.com/psf/black - rev: 22.6.0 + rev: 24.10.0 hooks: - id: black language_version: python3 - files: ^tests/ats + files: ^tests/ats/.*\.py$ + exclude: '' # accept proper type annotations only - repo: https://github.com/pre-commit/pygrep-hooks