-
Notifications
You must be signed in to change notification settings - Fork 23
/
.pre-commit-config.yaml
70 lines (63 loc) · 1.68 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
default_stages:
- commit
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
hooks:
- id: trailing-whitespace
- id: double-quote-string-fixer
- id: end-of-file-fixer
exclude: \.svg$
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.7.0
hooks:
- id: python-check-blanket-noqa
- repo: https://github.com/pycqa/flake8
rev: '6.1.0'
hooks:
- id: flake8
additional_dependencies:
- flake8-bugbear==23.3.12
- flake8-builtins==1.5.3
- flake8-commas==2.1.0
- flake8-comprehensions==3.14.0
- flake8-debugger==4.1.2
- flake8-docstrings==1.6.0
- flake8-functions==0.0.8
- flake8-polyfill==1.0.2
- flake8-pytest-style==1.7.2
- flake8-print==5.0.0
- flake8-quotes==3.4.0
- flake8-string-format==0.3.0
- flake8-todo==0.7
- flake8-annotations-complexity==0.0.8
- flake8-variables-names==0.0.6
- flake8-class-attributes-order==0.1.3
- flake8-broken-line==1.0.0
- flake8-cognitive-complexity==0.1.0
- cognitive-complexity==1.2.0
- flake8-fine-pytest==1.0.3
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.971
hooks:
- id: mypy
entry: mypy .
pass_filenames: false
additional_dependencies: ['types-PyYAML']
- repo: https://github.com/best-doctor/pre-commit-hooks
rev: 'v1.0.0'
hooks:
- id: mccabe-complexity
- id: expr-complexity
- id: no-asserts
exclude: tests/
- id: forbidden-imports
- repo: https://github.com/psf/black
rev: '22.8.0'
hooks:
- id: black
language_version: python
- repo: https://github.com/PyCQA/isort
rev: '5.12.0'
hooks:
- id: isort