11minimum_pre_commit_version : 2.15.0 
22exclude : ^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+ ] 
515ci :
616    autofix_prs : false 
717repos :
2434        types_or : [python, rst, markdown] 
2535        additional_dependencies : [tomli] 
2636-   repo : https://github.com/MarcoGorelli/cython-lint 
27-     rev : v0.9 .1 
37+     rev : v0.10 .1 
2838    hooks :
2939    -   id : cython-lint 
3040    -   id : double-quote-cython-strings 
@@ -34,9 +44,11 @@ repos:
3444    -   id : debug-statements 
3545    -   id : end-of-file-fixer 
3646        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] 
3849    -   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] 
4052-   repo : https://github.com/cpplint/cpplint 
4153    rev : 1.6.1 
4254    hooks :
@@ -46,7 +58,14 @@ repos:
4658        #  this particular codebase (e.g. src/headers, src/klib). However,
4759        #  we can lint all header files since they aren't "generated" like C files are.
4860        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+             --linelength=88, 
67+             ' --filter=-readability/casting,-runtime/int,-build/include_subdir,-readability/fn_size' 
68+         ] 
5069-   repo : https://github.com/PyCQA/flake8 
5170    rev : 6.0.0 
5271    hooks :
@@ -58,12 +77,12 @@ repos:
5877        - flake8-bugbear==22.7.1 
5978        - pandas-dev-flaker==0.5.0 
6079-   repo : https://github.com/pycqa/pylint 
61-     rev : v2.15.6  
80+     rev : v2.15.9  
6281    hooks :
6382    -   id : pylint 
6483        stages : [manual] 
6584-   repo : https://github.com/pycqa/pylint 
66-     rev : v2.15.6  
85+     rev : v2.15.9  
6786    hooks :
6887    -   id : pylint 
6988        alias : redefined-outer-name 
@@ -76,15 +95,14 @@ repos:
7695            |^pandas/util/_test_decorators\.py  # keep excluded 
7796            |^pandas/_version\.py  # keep excluded 
7897            |^pandas/conftest\.py  # keep excluded 
79-             |^pandas/core/generic\.py 
8098args : [--disable=all, --enable=redefined-outer-name] 
8199        stages : [manual] 
82100-   repo : https://github.com/PyCQA/isort 
83-     rev : 5.10.1  
101+     rev : 5.11.4  
84102    hooks :
85103    -   id : isort 
86104-   repo : https://github.com/asottile/pyupgrade 
87-     rev : v3.2.2  
105+     rev : v3.3.1  
88106    hooks :
89107    -   id : pyupgrade 
90108        args : [--py38-plus] 
@@ -107,6 +125,7 @@ repos:
107125    hooks :
108126    -   id : yesqa 
109127        additional_dependencies : *flake8_dependencies 
128+         stages : [manual] 
110129-   repo : local 
111130    hooks :
112131    #  NOTE: we make `black` a local hook because if it's installed from
@@ -214,7 +233,6 @@ repos:
214233        exclude : ^pandas/tests/extension/base/base\.py 
215234    -   id : pip-to-conda 
216235        name : Generate pip dependency from conda 
217-         description : This hook checks if the conda environment.yml and requirements-dev.txt are equal 
218236        language : python 
219237        entry : python scripts/generate_pip_deps_from_conda.py 
220238        files : ^(environment.yml|requirements-dev.txt)$ 
@@ -311,6 +329,16 @@ repos:
311329        files : ^pandas 
312330        exclude : ^(pandas/tests|pandas/_version.py|pandas/io/clipboard) 
313331        language : python 
332+         stages : [manual] 
314333        additional_dependencies :
315334        - autotyping==22.9.0 
316335        - libcst==0.4.7 
336+     -   id : check-test-naming 
337+         name : check that test names start with 'test' 
338+         entry : python -m scripts.check_test_naming 
339+         types : [python] 
340+         files : ^pandas/tests 
341+         language : python 
342+         exclude : | 
343+             (?x) 
344+             ^pandas/tests/generic/test_generic.py  # GH50380 
0 commit comments