-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
218 lines (218 loc) · 4.88 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-ast
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-json
- id: check-merge-conflict
- id: check-shebang-scripts-are-executable
- id: check-symlinks
- id: check-toml
- id: check-yaml
args:
- --allow-multiple-documents
- id: detect-private-key
- id: end-of-file-fixer
- id: mixed-line-ending
- id: name-tests-test
args:
- --pytest-test-first
- id: no-commit-to-branch
- id: pretty-format-json
args:
- --autofix
- --indent
- "4"
- id: requirements-txt-fixer
- id: trailing-whitespace
- repo: https://github.com/asottile/pyupgrade
rev: v3.15.2
hooks:
- id: pyupgrade
args:
- --keep-runtime-typing
- --py310-plus
stages:
- manual
- repo: https://github.com/pycqa/autoflake
rev: v2.3.1
hooks:
- id: autoflake
args:
- docs
- src
- tests
- noxfile.py
pass_filenames: false
stages:
- manual
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
args:
- .
pass_filenames: false
stages:
- manual
- repo: https://github.com/psf/black
rev: 24.4.0
hooks:
- id: black
additional_dependencies:
- .[jupyter]
args:
- docs
- src
- tests
- noxfile.py
pass_filenames: false
stages:
- manual
- repo: https://github.com/pycqa/bandit
rev: 1.7.8
hooks:
- id: bandit
args:
- --recursive
- --severity-level
- high
- --confidence-level
- high
- docs
- src
- tests
- noxfile.py
pass_filenames: false
- repo: https://github.com/pycqa/flake8
rev: 7.0.0
hooks:
- id: flake8
args:
- docs
- src
- tests
- noxfile.py
pass_filenames: false
stages:
- manual
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.9.0
hooks:
- id: mypy
additional_dependencies:
- pydantic
args:
- --ignore-missing-imports
- --scripts-are-modules
pass_filenames: false
stages:
- manual
- repo: https://github.com/PyCQA/pylint
rev: v3.1.0
hooks:
- id: pylint
args:
- --disable
- import-error
- .
pass_filenames: false
stages:
- manual
- repo: https://github.com/RobertCraigie/pyright-python
rev: v1.1.358
hooks:
- id: pyright
pass_filenames: false
stages:
- manual
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.3.7
hooks:
- id: ruff
args:
- .
pass_filenames: false
- id: ruff-format
args:
- .
pass_filenames: false
- repo: https://github.com/jendrikseipp/vulture
rev: v2.11
hooks:
- id: vulture
pass_filenames: false
- repo: https://github.com/PyCQA/docformatter
rev: v1.7.5
hooks:
- id: docformatter
additional_dependencies:
- .[tomli]
args:
- --in-place
- docs
- src
- tests
- noxfile.py
pass_filenames: false
- repo: https://github.com/adamchainz/blacken-docs
rev: 1.16.0
hooks:
- id: blacken-docs
args:
- --line-length
- "87"
- --target-version
- py310
- repo: https://github.com/econchick/interrogate
rev: 1.7.0
hooks:
- id: interrogate
args:
- docs
- src
- tests
- noxfile.py
pass_filenames: false
- repo: https://github.com/numpy/numpydoc
rev: v1.7.0
hooks:
- id: numpydoc-validation
stages:
- manual
- repo: https://github.com/tox-dev/pyproject-fmt
rev: 1.7.0
hooks:
- id: pyproject-fmt
- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.16
hooks:
- id: validate-pyproject
- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
hooks:
- id: codespell
additional_dependencies:
- .[toml]
args:
- --write-changes
stages:
- manual
- repo: https://github.com/crate-ci/typos
rev: v1.20.8
hooks:
- id: typos
args:
- --force-exclude
- --write-changes
- --locale
- en-gb
- --format
- brief
stages:
- manual
default_language_version:
python: python3.10
fail_fast: false