Skip to content

Commit a9e5a4c

Browse files
ci(pre-commit): Correct end-of-file-fixer exclude
The existing regex had numerous bugs and boiled down to a very complex way of matching any file whatsoever in the tests directory. Correct the syntax issues, and make a best guess at the original intent.
1 parent 34436a6 commit a9e5a4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ repos:
55
hooks:
66
- id: check-vcs-permalinks
77
- id: end-of-file-fixer
8-
exclude: "tests/[test_*|data|commands/tests_*]/*"
8+
exclude: "tests/((commands|data)/|test_).+"
99
- id: trailing-whitespace
1010
args: [--markdown-linebreak-ext=md]
1111
- id: debug-statements

0 commit comments

Comments
 (0)