Skip to content

Commit 6fff12d

Browse files
authored
Merge pull request #2541 from cornellius-gp/pre-commit-config
Corrected configuration of ``exclude`` statements in ``pre-commit`` configuration
2 parents c6826d9 + 0eeb2ae commit 6fff12d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,23 @@ repos:
1616
hooks:
1717
- id: flake8
1818
args: [--config=setup.cfg]
19-
exclude: ^(examples/*)|(docs/*)
19+
exclude: ^(examples/.*)|(docs/.*)
2020
- repo: https://github.com/omnilib/ufmt
2121
rev: v2.0.0
2222
hooks:
2323
- id: ufmt
2424
additional_dependencies:
2525
- black == 22.3.0
2626
- usort == 1.0.3
27-
exclude: ^(build/*)|(docs/*)|(examples/*)
27+
exclude: ^(build/.*)|(docs/.*)|(examples/.*)
2828
- repo: https://github.com/jumanjihouse/pre-commit-hooks
2929
rev: 2.1.6
3030
hooks:
3131
- id: require-ascii
32-
exclude: ^(examples/.*\.ipynb)|(.github/ISSUE_TEMPLATE/*)
32+
exclude: ^(examples/.*\.ipynb)|(.github/ISSUE_TEMPLATE/.*)
3333
- id: script-must-have-extension
3434
- id: forbid-binary
35-
exclude: ^(examples/*)|(test/examples/old_variational_strategy_model.pth)
35+
exclude: ^(examples/.*)|(test/examples/old_variational_strategy_model.pth)
3636
- repo: https://github.com/Lucas-C/pre-commit-hooks
3737
rev: v1.1.13
3838
hooks:

0 commit comments

Comments
 (0)