Skip to content

Commit 333367e

Browse files
authored
Pre commit fixes (#911)
* 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 * Remove requirements-txt-fixer To avoid this line: ``` fix requirements.txt.................................(no files to check)Skipped ``` * Change the commit hash in .github/workflows/bandit.yml
1 parent b8562d3 commit 333367e

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

.github/workflows/bandit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ jobs:
2020
security-events: write
2121
steps:
2222
- name: Perform Bandit Analysis
23-
uses: PyCQA/bandit-action@67a458d90fa11fb1463e91e7f4c8f068b5863c7f # v1.0.1
23+
uses: PyCQA/bandit-action@8a1b30610f61f3f792fe7556e888c9d7dffa52de

.pre-commit-config.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ ci:
1212
skip: [bandit]
1313
submodules: false
1414

15-
gen_exclude: &gen_exclude '^cuda_bindings/cuda/bindings/.*\.in?$|cuda_bindings/docs/source/module/.*\.rst?$'
16-
1715
# Please update the rev: SHAs below with this command:
1816
# pre-commit autoupdate --freeze
1917
repos:
@@ -54,9 +52,8 @@ repos:
5452
- id: check-yaml
5553
- id: debug-statements
5654
- id: end-of-file-fixer
57-
exclude: *gen_exclude
55+
exclude: &gen_exclude '^(?:cuda_bindings/cuda/bindings/.*\.in?|cuda_bindings/docs/source/module/.*\.rst?)$'
5856
- id: mixed-line-ending
59-
- id: requirements-txt-fixer
6057
- id: trailing-whitespace
6158
exclude: *gen_exclude
6259

0 commit comments

Comments
 (0)