From d12b9e0dbda62a0b8043592413935de75f4a18b8 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Wed, 27 Aug 2025 09:01:04 -0700 Subject: [PATCH 1/3] Define gen_exclude anchor at first use to resolve warning This was the warning: [WARNING] Unexpected key(s) present at root: gen_exclude Also fix the regex: the old pattern was missing the ^ before the second alternative --- .pre-commit-config.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0479db6a59..8e8a6b3f31 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,8 +12,6 @@ ci: skip: [bandit] submodules: false -gen_exclude: &gen_exclude '^cuda_bindings/cuda/bindings/.*\.in?$|cuda_bindings/docs/source/module/.*\.rst?$' - # Please update the rev: SHAs below with this command: # pre-commit autoupdate --freeze repos: @@ -54,7 +52,7 @@ repos: - id: check-yaml - id: debug-statements - id: end-of-file-fixer - exclude: *gen_exclude + exclude: &gen_exclude '^(?:cuda_bindings/cuda/bindings/.*\.in?|cuda_bindings/docs/source/module/.*\.rst?)$' - id: mixed-line-ending - id: requirements-txt-fixer - id: trailing-whitespace From 240d637fe121be6ec564376e872ba293e567a9bc Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Wed, 27 Aug 2025 09:28:25 -0700 Subject: [PATCH 2/3] Remove requirements-txt-fixer To avoid this line: ``` fix requirements.txt.................................(no files to check)Skipped ``` --- .pre-commit-config.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8e8a6b3f31..4da2dddef3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -54,7 +54,6 @@ repos: - id: end-of-file-fixer exclude: &gen_exclude '^(?:cuda_bindings/cuda/bindings/.*\.in?|cuda_bindings/docs/source/module/.*\.rst?)$' - id: mixed-line-ending - - id: requirements-txt-fixer - id: trailing-whitespace exclude: *gen_exclude From ed25cc72bd493aee1a42ed21ef26f09efde25c8d Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Wed, 27 Aug 2025 09:27:05 -0700 Subject: [PATCH 3/3] Change the commit hash in .github/workflows/bandit.yml --- .github/workflows/bandit.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/bandit.yml b/.github/workflows/bandit.yml index c80831095f..46663929f6 100644 --- a/.github/workflows/bandit.yml +++ b/.github/workflows/bandit.yml @@ -20,4 +20,4 @@ jobs: security-events: write steps: - name: Perform Bandit Analysis - uses: PyCQA/bandit-action@67a458d90fa11fb1463e91e7f4c8f068b5863c7f # v1.0.1 + uses: PyCQA/bandit-action@8a1b30610f61f3f792fe7556e888c9d7dffa52de