-
Notifications
You must be signed in to change notification settings - Fork 14
/
.pre-commit-config.yaml
76 lines (69 loc) · 1.93 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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: check-added-large-files
- id: check-json
- id: check-toml
- id: check-xml
- id: check-yaml
- id: debug-statements
- id: detect-private-key
- id: double-quote-string-fixer
- id: end-of-file-fixer
- id: mixed-line-ending
- id: name-tests-test
args: ["--pytest-test-first"]
- id: trailing-whitespace
- repo: https://github.com/pre-commit/mirrors-autopep8
rev: v2.0.1
hooks:
- id: autopep8
- repo: https://github.com/PyCQA/bandit
rev: 1.7.4
hooks:
- id: bandit
additional_dependencies: ["bandit[toml]",]
pass_filenames: false
args:
[
"-c", "pyproject.toml", # Use config located at [tool.bandit] in pyproject.toml
"-r", "src", # Recursively scan src
]
- repo: https://github.com/asottile/reorder_python_imports
rev: v3.9.0
hooks:
- id: reorder-python-imports
pass_filenames: false
args:
[
"--application-directories=.:src",
"--py310-plus",
]
- repo: https://github.com/pycqa/pydocstyle
rev: 6.1.1
hooks:
- id: pydocstyle
additional_dependencies: ["pydocstyle[toml]",]
pass_filenames: false
- repo: https://github.com/asottile/pyupgrade
rev: v3.3.1
hooks:
- id: pyupgrade
args: ["--py310-plus",]
- repo: https://github.com/PyCQA/pylint
rev: v2.15.8
hooks:
- id: pylint
name: pylint
args:
[
"-rn", # Only display messages
"-sn", # Don't display the score
]
- repo: https://github.com/RobertCraigie/pyright-python
rev: v1.1.284
hooks:
- id: pyright