1
- minimum_pre_commit_version : 2.9.2
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
5
ci :
4
6
autofix_prs : false
5
7
repos :
9
11
- id : absolufy-imports
10
12
files : ^pandas/
11
13
- repo : https://github.com/jendrikseipp/vulture
12
- rev : ' v2.3 '
14
+ rev : ' v2.4 '
13
15
hooks :
14
16
- id : vulture
15
17
entry : python scripts/run_vulture.py
31
33
- id : debug-statements
32
34
- id : end-of-file-fixer
33
35
exclude : \.txt$
36
+ stages : [commit, merge-commit, push, prepare-commit-msg, commit-msg, post-checkout, post-commit, post-merge, post-rewrite]
34
37
- id : trailing-whitespace
38
+ stages : [commit, merge-commit, push, prepare-commit-msg, commit-msg, post-checkout, post-commit, post-merge, post-rewrite]
35
39
- repo : https://github.com/cpplint/cpplint
36
40
rev : 1.6.0
37
41
hooks :
56
60
hooks :
57
61
- id : isort
58
62
- repo : https://github.com/asottile/pyupgrade
59
- rev : v2.32.0
63
+ rev : v2.32.1
60
64
hooks :
61
65
- id : pyupgrade
62
66
args : [--py38-plus]
71
75
types : [text] # overwrite types: [rst]
72
76
types_or : [python, rst]
73
77
- repo : https://github.com/sphinx-contrib/sphinx-lint
74
- rev : v0.4.1
78
+ rev : v0.6
75
79
hooks :
76
80
- id : sphinx-lint
77
81
- repo : https://github.com/asottile/yesqa
@@ -84,12 +88,22 @@ repos:
84
88
- id : pyright
85
89
name : pyright
86
90
entry : pyright
91
+ # note: assumes python env is setup and activated
87
92
language : node
88
93
pass_filenames : false
89
94
types : [python]
90
95
stages : [manual]
91
- # note: keep version in sync with .github/workflows/code-checks.yml
92
- additional_dependencies :
['[email protected] ']
96
+ additional_dependencies :
['[email protected] ']
97
+ - repo : local
98
+ hooks :
99
+ - id : mypy
100
+ name : mypy
101
+ entry : mypy
102
+ # note: assumes python env is setup and activated
103
+ language : system
104
+ pass_filenames : false
105
+ types : [python]
106
+ stages : [manual]
93
107
- repo : local
94
108
hooks :
95
109
- id : flake8-rst
0 commit comments