-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.pre-commit-config.yaml
41 lines (38 loc) · 1.18 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: detect-private-key
- id: check-added-large-files
args: ["--maxkb=5000"]
- id: check-merge-conflict
- id: check-json
- id: check-yaml
- id: end-of-file-fixer
exclude: ^tests/.*/fixtures/.*
- id: debug-statements
# - id: detect-aws-credentials
- repo: https://gitlab.com/pycqa/flake8
rev: 3.9.2
hooks:
- id: flake8
- repo: https://github.com/ambv/black
rev: 21.6b0
hooks:
- id: black
# - repo: https://github.com/timothycrosley/isort
# rev: 5.8.0
# hooks:
# - id: isort
# additional_dependencies: [toml]
# exclude: ^.*/?setup\.py$
# - repo: https://github.com/asottile/reorder_python_imports
# rev: v2.5.0
# hooks:
# - id: reorder-python-imports
# - repo: https://github.com/Lucas-C/pre-commit-hooks-bandit
# rev: v1.0.5
# hooks:
# - id: python-bandit-vulnerability-check
# args: [-l, --recursive, -x, tests]
# files: .py$