-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
67 lines (67 loc) · 1.65 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: local
hooks:
- id: pylint
name: pylint
entry: poetry run pylint
language: system
exclude: ^migrations/
types: [python]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.1.0
hooks:
- id: check-added-large-files
- id: check-json
exclude: 'k8s/secret.json'
- id: detect-private-key
- id: end-of-file-fixer
- id: pretty-format-json
args: [
'--autofix',
'--indent', '4',
'--no-sort-keys',
]
exclude: 'k8s/secret.json'
- id: trailing-whitespace
- repo: local
hooks:
- id: mypy
name: mypy
entry: poetry run mypy
language: system
types: [python]
- repo: local
hooks:
- id: bandit
name: bandit
entry: poetry run bandit
args: [-lll, --recursive]
language: system
- repo: local
hooks:
- id: detect-secrets
name: detect-secrets
entry: poetry run detect-secrets-hook
args: ['--baseline', '.secrets.baseline']
exclude: "poetry.lock"
language: system
- repo: https://github.com/asottile/seed-isort-config
rev: v1.9.3
hooks:
- id: seed-isort-config
- repo: local
hooks:
- id: isort
name: isort
entry: poetry run isort
args: ["--recursive", "--settings-path", "./pyproject.toml", "."]
language: system
types: [python]
- repo: local
hooks:
- id: black
name: black
entry: poetry run black
args: ["--config","./pyproject.toml", "."]
types: [python]
language: system