Skip to content

Commit 8661f6c

Browse files
Use improved tests required-filename pattern (#836)
Signed-off-by: Matt Norton <matt@carrotmanmatt.com> Co-authored-by: automatic-pr-updater[bot] <217796550+automatic-pr-updater[bot]@users.noreply.github.com>
1 parent 6ea3881 commit 8661f6c

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

‎.pre-commit-config.yaml‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -85,35 +85,35 @@ repos:
8585

8686
- repo: builtin
8787
hooks:
88-
- id: check-case-conflict
89-
- id: destroyed-symlinks
90-
- id: check-vcs-permalinks
9188
- id: check-added-large-files
92-
- id: check-illegal-windows-names
93-
- id: check-shebang-scripts-are-executable
94-
- id: trailing-whitespace
89+
- id: check-case-conflict
9590
- id: check-executables-have-shebangs
91+
- id: check-illegal-windows-names
9692
- id: check-json
9793
- id: check-jsonc
94+
- id: check-merge-conflict
95+
- id: check-shebang-scripts-are-executable
96+
- id: check-symlinks
9897
- id: check-toml
98+
- id: check-vcs-permalinks
99+
- id: check-xml
99100
- id: check-yaml
101+
- id: destroyed-symlinks
102+
- id: detect-private-key
100103
- id: end-of-file-fixer
101-
- id: check-xml
102-
- id: check-symlinks
103-
- id: check-merge-conflict
104+
- id: fix-byte-order-marker
104105
- id: mixed-line-ending
105106
args: [--fix=lf]
106-
- id: detect-private-key
107-
- id: fix-byte-order-marker
108107
- id: pretty-format-json
109108
args: [--autofix, --indent, "4"]
110109
- id: require-filename-pattern
111-
files: (^|/)tests/.+\.py$ # yamllint disable-line rule:key-ordering
110+
files: (^|/)tests/(?!(?:.+/)?_[a-z_]+/).+\.py$ # yamllint disable-line rule:key-ordering
112111
args:
113112
- ^test_.*\.py$
114113
- ^__init__\.py$
115114
- ^conftest\.py$
116115
- ^_.*\.py$
116+
- id: trailing-whitespace
117117

118118
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
119119
rev: v2.16.0

0 commit comments

Comments
 (0)