@@ -18,15 +18,15 @@ repos:
1818 types : [text]
1919 args : [--append-config=flake8/cython-template.cfg]
2020- repo : https://github.com/PyCQA/isort
21- rev : 5.6.3
21+ rev : 5.6.4
2222 hooks :
2323 - id : isort
2424 name : isort (python)
2525 - id : isort
2626 name : isort (cython)
2727 types : [cython]
2828- repo : https://github.com/asottile/pyupgrade
29- rev : v2.7.2
29+ rev : v2.7.3
3030 hooks :
3131 - id : pyupgrade
3232 args : [--py37-plus]
@@ -66,9 +66,17 @@ repos:
6666 from\ pandas\.core\ import\ common|
6767
6868 # Check for imports from collections.abc instead of `from collections import abc`
69- from\ collections\.abc\ import|
69+ from\ collections\.abc\ import
7070
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
7280 types : [python]
7381 - id : non-standard-imports-in-tests
7482 name : Check for non-standard imports in test suite
@@ -104,19 +112,19 @@ repos:
104112 language : python
105113 entry : python scripts/validate_unwanted_patterns.py --validation-type="private_import_across_module"
106114 types : [python]
107- exclude : ^(asv_bench|pandas/_vendored|pandas/ tests|doc)/
115+ exclude : ^(asv_bench|pandas/tests|doc)/
108116 - id : unwanted-patterns-private-function-across-module
109117 name : Check for use of private functions across modules
110118 language : python
111119 entry : python scripts/validate_unwanted_patterns.py --validation-type="private_function_across_module"
112120 types : [python]
113- exclude : ^(asv_bench|pandas/_vendored|pandas/ tests|doc)/
121+ exclude : ^(asv_bench|pandas/tests|doc)/
114122- repo : https://github.com/asottile/yesqa
115123 rev : v1.2.2
116124 hooks :
117125 - id : yesqa
118126- repo : https://github.com/pre-commit/pre-commit-hooks
119- rev : v3.2 .0
127+ rev : v3.3 .0
120128 hooks :
121129 - id : end-of-file-fixer
122130 exclude : ^LICENSES/|\.(html|csv|txt|svg|py)$
0 commit comments