-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy path.pre-commit-config.yaml
37 lines (37 loc) · 1.2 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: '24.8.0'
hooks:
- id: black
args: [--config=pyproject.toml]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 26de894
hooks:
- id: mypy
additional_dependencies:
- 'numpy'
args: [--ignore-missing-imports, --warn-no-return, --warn-redundant-casts, --disallow-incomplete-defs, --no-namespace-packages]
- repo: https://github.com/PyCQA/flake8
rev: '6.1.0'
hooks:
- id: flake8
additional_dependencies: [
'flake8-bugbear==23.9.16',
'flake8-coding==1.3.2',
'flake8-comprehensions==3.14.0',
'flake8-debugger==4.1.2',
'flake8-deprecated==2.1.0',
'flake8-docstrings==1.7.0',
'flake8-isort==6.1.0',
'flake8-pep3101==2.0.0',
'flake8-polyfill==1.0.2',
'flake8-print==5.0.0',
'flake8-quotes==3.3.2',
'flake8-string-format==0.3.0',
]