-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
61 lines (59 loc) · 1.43 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
exclude: 'build|.github'
default_language_version:
python: python3.10
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-yaml
- id: check-docstring-first
- id: check-toml
- id: check-case-conflict
- id: check-added-large-files
exclude: ^notebooks
args: ['--maxkb=350', '--enforce-all']
- id: detect-private-key
- id: check-vcs-permalinks
- repo: https://github.com/asottile/yesqa
rev: v1.4.0
hooks:
- id: yesqa
name: Unused noqa
- repo: https://github.com/PyCQA/docformatter
rev: v1.5.1
hooks:
- id: docformatter
- repo: https://github.com/Kludex/no-optional
rev: 0.4.0
hooks:
- id: no_optional
- repo: https://github.com/dhruvmanila/remove-print-statements
rev: v0.5.0
hooks:
- id: remove-print-statements
- repo: https://github.com/bwhmather/ssort
rev: v0.11.6
hooks:
- id: ssort
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 23.1.0
hooks:
- id: black
- repo: https://github.com/pycqa/flake8
rev: 6.0.0
hooks:
- id: flake8
exclude: ^(build|tests)
additional_dependencies: ["flake8-docstrings"]
args: [--config, .flake8]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.0.1
hooks:
- id: mypy
files: ^dpat