@@ -181,15 +181,10 @@ repos:
181
181
types : [rst]
182
182
args : [--filename=*.rst]
183
183
additional_dependencies : [flake8-rst==0.7.0, flake8==3.7.9]
184
- - id : frame-or-series-union
185
- name : Check for use of Union[Series, DataFrame] instead of FrameOrSeriesUnion alias
186
- entry : Union\[.*(Series,.*DataFrame|DataFrame,.*Series).*\]
187
- language : pygrep
188
- types : [python]
189
- exclude : ^pandas/_typing\.py$
190
184
- id : inconsistent-namespace-usage
191
185
name : ' Check for inconsistent use of pandas namespace'
192
186
entry : python scripts/check_for_inconsistent_pandas_namespace.py
187
+ exclude : ^pandas/core/interchange/
193
188
language : python
194
189
types : [python]
195
190
- id : no-os-remove
@@ -200,9 +195,7 @@ repos:
200
195
files : ^pandas/tests/
201
196
exclude : |
202
197
(?x)^
203
- pandas/tests/io/excel/test_writers\.py
204
- |pandas/tests/io/pytables/common\.py
205
- |pandas/tests/io/pytables/test_store\.py$
198
+ pandas/tests/io/pytables/test_store\.py$
206
199
- id : unwanted-patterns
207
200
name : Unwanted patterns
208
201
language : pygrep
@@ -216,12 +209,8 @@ repos:
216
209
|\.__class__
217
210
218
211
# np.bool/np.object instead of np.bool_/np.object_
219
- |np\.bool[^_8]
220
- |np\.object[^_8]
221
-
222
- # imports from pandas.core.common instead of `import pandas.core.common as com`
223
- |from\ pandas\.core\.common\ import
224
- |from\ pandas\.core\ import\ common
212
+ |np\.bool[^_8`]
213
+ |np\.object[^_8`]
225
214
226
215
# imports from collections.abc instead of `from collections import abc`
227
216
|from\ collections\.abc\ import
@@ -331,7 +320,10 @@ repos:
331
320
language : python
332
321
entry : python scripts/validate_unwanted_patterns.py --validation-type="private_import_across_module"
333
322
types : [python]
334
- exclude : ^(asv_bench|pandas/tests|doc)/
323
+ exclude : |
324
+ (?x)
325
+ ^(asv_bench|pandas/tests|doc)/
326
+ |scripts/validate_min_versions_in_sync\.py$
335
327
- id : unwanted-patterns-strings-to-concatenate
336
328
name : Check for use of not concatenated strings
337
329
language : python
0 commit comments