1
1
minimum_pre_commit_version : 2.15.0
2
2
exclude : ^LICENSES/|\.(html|csv|svg)$
3
- # reserve "manual" for mypy and pyright
4
- default_stages : [commit, merge-commit, push, prepare-commit-msg, commit-msg, post-checkout, post-commit, post-merge, post-rewrite]
3
+ # reserve "manual" for relatively slow hooks which we still want to run in CI
4
+ default_stages : [
5
+ commit,
6
+ merge-commit,
7
+ push,
8
+ prepare-commit-msg,
9
+ commit-msg,
10
+ post-checkout,
11
+ post-commit,
12
+ post-merge,
13
+ post-rewrite
14
+ ]
5
15
ci :
6
16
autofix_prs : false
7
17
repos :
@@ -34,9 +44,11 @@ repos:
34
44
- id : debug-statements
35
45
- id : end-of-file-fixer
36
46
exclude : \.txt$
37
- stages : [commit, merge-commit, push, prepare-commit-msg, commit-msg, post-checkout, post-commit, post-merge, post-rewrite]
47
+ stages : [commit, merge-commit, push, prepare-commit-msg, commit-msg,
48
+ post-checkout, post-commit, post-merge, post-rewrite]
38
49
- id : trailing-whitespace
39
- stages : [commit, merge-commit, push, prepare-commit-msg, commit-msg, post-checkout, post-commit, post-merge, post-rewrite]
50
+ stages : [commit, merge-commit, push, prepare-commit-msg, commit-msg,
51
+ post-checkout, post-commit, post-merge, post-rewrite]
40
52
- repo : https://github.com/cpplint/cpplint
41
53
rev : 1.6.1
42
54
hooks :
@@ -46,7 +58,13 @@ repos:
46
58
# this particular codebase (e.g. src/headers, src/klib). However,
47
59
# we can lint all header files since they aren't "generated" like C files are.
48
60
exclude : ^pandas/_libs/src/(klib|headers)/
49
- args : [--quiet, '--extensions=c,h', '--headers=h', --recursive, '--filter=-readability/casting,-runtime/int,-build/include_subdir']
61
+ args : [
62
+ --quiet,
63
+ ' --extensions=c,h' ,
64
+ ' --headers=h' ,
65
+ --recursive,
66
+ ' --filter=-readability/casting,-runtime/int,-build/include_subdir'
67
+ ]
50
68
- repo : https://github.com/PyCQA/flake8
51
69
rev : 6.0.0
52
70
hooks :
@@ -107,6 +125,7 @@ repos:
107
125
hooks :
108
126
- id : yesqa
109
127
additional_dependencies : *flake8_dependencies
128
+ stages : [manual]
110
129
- repo : local
111
130
hooks :
112
131
# NOTE: we make `black` a local hook because if it's installed from
@@ -214,7 +233,6 @@ repos:
214
233
exclude : ^pandas/tests/extension/base/base\.py
215
234
- id : pip-to-conda
216
235
name : Generate pip dependency from conda
217
- description : This hook checks if the conda environment.yml and requirements-dev.txt are equal
218
236
language : python
219
237
entry : python scripts/generate_pip_deps_from_conda.py
220
238
files : ^(environment.yml|requirements-dev.txt)$
@@ -311,6 +329,7 @@ repos:
311
329
files : ^pandas
312
330
exclude : ^(pandas/tests|pandas/_version.py|pandas/io/clipboard)
313
331
language : python
332
+ stages : [manual]
314
333
additional_dependencies :
315
334
- autotyping==22.9.0
316
335
- libcst==0.4.7
0 commit comments