File tree 1 file changed +10
-2
lines changed
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -66,9 +66,17 @@ repos:
66
66
from\ pandas\.core\ import\ common|
67
67
68
68
# Check for imports from collections.abc instead of `from collections import abc`
69
- from\ collections\.abc\ import|
69
+ from\ collections\.abc\ import
70
70
71
- from\ numpy\ import\ nan
71
+ - id : non-standard-numpy.random-related-imports
72
+ name : Check for non-standard numpy.random-related imports excluding pandas/_testing.py
73
+ language : pygrep
74
+ exclude : pandas/_testing.py
75
+ entry : |
76
+ (?x)
77
+ # Check for imports from np.random.<method> instead of `from numpy import random` or `from numpy.random import <method>`
78
+ from\ numpy\ import\ random|
79
+ from\ numpy.random\ import
72
80
types : [python]
73
81
- id : non-standard-imports-in-tests
74
82
name : Check for non-standard imports in test suite
You can’t perform that action at this time.
0 commit comments