1+ minimum_pre_commit_version : ' 2.9.2'
12repos :
23- repo : https://github.com/python/black
34 rev : 20.8b1
@@ -21,10 +22,8 @@ repos:
2122 rev : 5.6.4
2223 hooks :
2324 - 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]
2827- repo : https://github.com/asottile/pyupgrade
2928 rev : v2.7.4
3029 hooks :
@@ -96,17 +95,17 @@ repos:
9695 name : Check for incorrect code block or IPython directives
9796 language : pygrep
9897 entry : (\.\. code-block ::|\.\. ipython ::)
99- files : \.(py|pyx| rst)$
98+ types_or : [python, cython, rst]
10099 - id : unwanted-patterns-strings-to-concatenate
101100 name : Check for use of not concatenated strings
102101 language : python
103102 entry : python scripts/validate_unwanted_patterns.py --validation-type="strings_to_concatenate"
104- files : \.(py|pyx|pxd|pxi)$
103+ types_or : [python, cython]
105104 - id : unwanted-patterns-strings-with-wrong-placed-whitespace
106105 name : Check for strings with wrong placed spaces
107106 language : python
108107 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]
110109 - id : unwanted-patterns-private-import-across-module
111110 name : Check for import of private attributes across modules
112111 language : python
0 commit comments