Skip to content

Commit d12b9e0

Browse files
committed
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
1 parent 135af40 commit d12b9e0

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 3 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,7 +52,7 @@ 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
5957
- id: requirements-txt-fixer
6058
- id: trailing-whitespace

0 commit comments

Comments
 (0)