-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
67 lines (61 loc) · 1.63 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
hooks:
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: detect-private-key
- id: end-of-file-fixer
- id: trailing-whitespace
- id: mixed-line-ending
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.1.10
hooks:
- id: remove-tabs
args: [ "--whitespaces-count", "4" ]
- repo: https://github.com/pycqa/isort
rev: 5.6.4
hooks:
- id: isort
args: [
"--profile", "black",
"--line-length", "80"
]
- repo: https://github.com/psf/black
rev: 20.8b1
hooks:
- id: black
args: [
"--safe",
"--quiet",
"--line-length", "80"
]
- repo: https://gitlab.com/pycqa/flake8
rev: 3.8.4
hooks:
- id: flake8
args: [
"--max-line-length", "80",
"--extend-ignore", "D205,D212,D415,E203",
"--exclude", ".eggs,.git,__pycache__,.tox,.vscode,build/,dist/",
"--docstring-convention", "google"
]
language_version: python3
additional_dependencies:
- flake8-docstrings==1.5.0
- repo: https://github.com/Lucas-C/pre-commit-hooks-bandit
rev: v1.0.5
hooks:
- id: python-bandit-vulnerability-check
args: [
"--skip", "B404,B603",
"pyprint.py"
]
- repo: https://github.com/asottile/blacken-docs
rev: v1.10.0
hooks:
- id: blacken-docs
additional_dependencies: [black==20.8b1]
args: [
"--line-length", "80"
]