File tree 1 file changed +3
-20
lines changed
1 file changed +3
-20
lines changed Original file line number Diff line number Diff line change @@ -208,39 +208,22 @@ repos:
208
208
language : pygrep
209
209
entry : |
210
210
(?x)
211
- # pytest.xfail instead of pytest.mark.xfail
212
- pytest\.xfail
213
-
214
211
# imports from pandas._testing instead of `import pandas._testing as tm`
215
- | from\ pandas\._testing\ import
212
+ from\ pandas\._testing\ import
216
213
|from\ pandas\ import\ _testing\ as\ tm
217
214
218
- # No direct imports from conftest
219
- |conftest\ import
220
- |import\ conftest
221
-
222
215
# pandas.testing instead of tm
223
216
|pd\.testing\.
224
217
225
218
# pd.api.types instead of from pandas.api.types import ...
226
219
|(pd|pandas)\.api\.types\.
227
220
228
- # np.testing, np.array_equal
229
- |(numpy|np)(\.testing|\.array_equal)
230
-
231
- # unittest.mock (use pytest builtin monkeypatch fixture instead)
232
- |(unittest(\.| import )mock|mock\.Mock\(\)|mock\.patch)
221
+ # np.array_equal
222
+ |(numpy|np)\.array_equal
233
223
234
224
# pytest raises without context
235
225
|\s\ pytest.raises
236
226
237
- # TODO
238
- # pytest.warns (use tm.assert_produces_warning instead)
239
- # |pytest\.warns
240
-
241
- # os.remove
242
- |os\.remove
243
-
244
227
# Unseeded numpy default_rng
245
228
|default_rng\(\)
246
229
files : ^pandas/tests/
You can’t perform that action at this time.
0 commit comments