-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
47 lines (47 loc) · 1.01 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
repos:
- repo: local
hooks:
- id: black
name: black
entry: black
language: system
types: [python]
- repo: local
hooks:
- id: autoflake
name: autoflake
entry: autoflake
language: system
types: [python]
args:
[
"--in-place",
"--remove-all-unused-imports",
"--remove-unused-variable",
]
- repo: local
hooks:
- id: pylint
name: pylint
entry: pylint
language: system
exclude: "tests/"
types: [python]
args: ["-d C0411,C0209,W0511"]
- repo: local
hooks:
- id: mypy
name: mypy
entry: mypy
language: system
exclude: "tests/"
types: [python]
- repo: local
hooks:
- id: flake8
name: flake8
entry: flake8
exclude: "tests/"
language: system
types: [python]
args: ["--max-line-length=88", "--ignore=E203,W503,S101,tests"]