File tree 1 file changed +10
-3
lines changed
1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 1
1
minimum_pre_commit_version : 2.9.2
2
+ exclude : ^LICENSES/|\.(html|csv|svg)$
2
3
repos :
3
4
- repo : https://github.com/python/black
4
5
rev : 20.8b1
@@ -121,6 +122,13 @@ repos:
121
122
entry : python scripts/validate_unwanted_patterns.py --validation-type="private_function_across_module"
122
123
types : [python]
123
124
exclude : ^(asv_bench|pandas/tests|doc)/
125
+ - id : unwanted-patterns-bare-pytest-raises
126
+ name : Check for use of bare pytest raises
127
+ language : python
128
+ entry : python scripts/validate_unwanted_patterns.py --validation-type="bare_pytest_raises"
129
+ types : [python]
130
+ files : ^pandas/tests/
131
+ exclude : ^pandas/tests/(computation|extension|io)/
124
132
- id : inconsistent-namespace-usage
125
133
name : ' Check for inconsistent use of pandas namespace in tests'
126
134
entry : python scripts/check_for_inconsistent_pandas_namespace.py
@@ -137,7 +145,7 @@ repos:
137
145
name : Check for use of foo.__class__ instead of type(foo)
138
146
entry : \.__class__
139
147
language : pygrep
140
- files : \.(py|pyx)$
148
+ types_or : [python, cython]
141
149
- id : unwanted-typing
142
150
name : Check for use of comment-based annotation syntax and missing error codes
143
151
entry : |
@@ -165,9 +173,8 @@ repos:
165
173
rev : v3.4.0
166
174
hooks :
167
175
- id : end-of-file-fixer
168
- exclude : ^LICENSES/|\.(html|csv| txt|svg|py) $
176
+ exclude : \. txt$
169
177
- id : trailing-whitespace
170
- exclude : \.(html|svg)$
171
178
- repo : https://github.com/codespell-project/codespell
172
179
rev : v2.0.0
173
180
hooks :
You can’t perform that action at this time.
0 commit comments