@@ -17,21 +17,18 @@ repos:
17
17
entry : python scripts/run_vulture.py
18
18
pass_filenames : true
19
19
require_serial : false
20
- - repo : https://github.com/python/black
21
- rev : 22.10.0
22
- hooks :
23
- - id : black
24
20
- repo : https://github.com/codespell-project/codespell
25
21
rev : v2.2.2
26
22
hooks :
27
23
- id : codespell
28
24
types_or : [python, rst, markdown]
29
25
- repo : https://github.com/MarcoGorelli/cython-lint
30
- rev : v0.2 .1
26
+ rev : v0.9 .1
31
27
hooks :
32
28
- id : cython-lint
29
+ - id : double-quote-cython-strings
33
30
- repo : https://github.com/pre-commit/pre-commit-hooks
34
- rev : v4.3 .0
31
+ rev : v4.4 .0
35
32
hooks :
36
33
- id : debug-statements
37
34
- id : end-of-file-fixer
@@ -50,22 +47,22 @@ repos:
50
47
exclude : ^pandas/_libs/src/(klib|headers)/
51
48
args : [--quiet, '--extensions=c,h', '--headers=h', --recursive, '--filter=-readability/casting,-runtime/int,-build/include_subdir']
52
49
- repo : https://github.com/PyCQA/flake8
53
- rev : 5 .0.4
50
+ rev : 6 .0.0
54
51
hooks :
55
52
- id : flake8
56
53
# Need to patch os.remove rule in pandas-dev-flaker
57
54
exclude : ^ci/fix_wheels.py
58
55
additional_dependencies : &flake8_dependencies
59
- - flake8==5 .0.4
56
+ - flake8==6 .0.0
60
57
- flake8-bugbear==22.7.1
61
58
- pandas-dev-flaker==0.5.0
62
59
- repo : https://github.com/pycqa/pylint
63
- rev : v2.15.5
60
+ rev : v2.15.6
64
61
hooks :
65
62
- id : pylint
66
63
stages : [manual]
67
64
- repo : https://github.com/pycqa/pylint
68
- rev : v2.15.5
65
+ rev : v2.15.6
69
66
hooks :
70
67
- id : pylint
71
68
alias : redefined-outer-name
88
85
hooks :
89
86
- id : isort
90
87
- repo : https://github.com/asottile/pyupgrade
91
- rev : v3.2.0
88
+ rev : v3.2.2
92
89
hooks :
93
90
- id : pyupgrade
94
91
args : [--py38-plus]
@@ -111,8 +108,19 @@ repos:
111
108
hooks :
112
109
- id : yesqa
113
110
additional_dependencies : *flake8_dependencies
111
+ stages : [manual]
114
112
- repo : local
115
113
hooks :
114
+ # NOTE: we make `black` a local hook because if it's installed from
115
+ # PyPI (rather than from source) then it'll run twice as fast thanks to mypyc
116
+ - id : black
117
+ name : black
118
+ description : " Black: The uncompromising Python code formatter"
119
+ entry : black
120
+ language : python
121
+ require_serial : true
122
+ types_or : [python, pyi]
123
+ additional_dependencies : [black==22.10.0]
116
124
- id : pyright
117
125
# note: assumes python env is setup and activated
118
126
name : pyright
0 commit comments