1
+ minimum_pre_commit_version : ' 2.9.2'
1
2
repos :
2
3
- repo : https://github.com/python/black
3
4
rev : 20.8b1
@@ -21,10 +22,8 @@ repos:
21
22
rev : 5.6.4
22
23
hooks :
23
24
- id : isort
24
- name : isort (python)
25
- - id : isort
26
- name : isort (cython)
27
- types : [cython]
25
+ types : [text] # overwrite upstream `types: [python]`
26
+ types_or : [python, cython]
28
27
- repo : https://github.com/asottile/pyupgrade
29
28
rev : v2.7.4
30
29
hooks :
@@ -96,17 +95,17 @@ repos:
96
95
name : Check for incorrect code block or IPython directives
97
96
language : pygrep
98
97
entry : (\.\. code-block ::|\.\. ipython ::)
99
- files : \.(py|pyx| rst)$
98
+ types_or : [python, cython, rst]
100
99
- id : unwanted-patterns-strings-to-concatenate
101
100
name : Check for use of not concatenated strings
102
101
language : python
103
102
entry : python scripts/validate_unwanted_patterns.py --validation-type="strings_to_concatenate"
104
- files : \.(py|pyx|pxd|pxi)$
103
+ types_or : [python, cython]
105
104
- id : unwanted-patterns-strings-with-wrong-placed-whitespace
106
105
name : Check for strings with wrong placed spaces
107
106
language : python
108
107
entry : python scripts/validate_unwanted_patterns.py --validation-type="strings_with_wrong_placed_whitespace"
109
- files : \.(py|pyx|pxd|pxi)$
108
+ types_or : [python, cython]
110
109
- id : unwanted-patterns-private-import-across-module
111
110
name : Check for import of private attributes across modules
112
111
language : python
0 commit comments