-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pre-commit-config.yaml
62 lines (61 loc) · 1.32 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
# Run fixers before checkers to reduce message spam
repos:
- repo: https://github.com/asottile/seed-isort-config
rev: v2.2.0
hooks:
- id: seed-isort-config
- repo: https://github.com/timothycrosley/isort
rev: 5.9.3
hooks:
- id: isort
additional_dependencies: [toml]
args: [--profile, black]
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v1.6.1
hooks:
- id: pretty-format-toml
args:
- --autofix
exclude: ^hypercorn.conf.toml$
- id: pretty-format-yaml
args:
- --autofix
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- id: fix-byte-order-marker
- id: fix-encoding-pragma
args:
- --remove
- id: pretty-format-json
args:
- --autofix
- --no-sort-keys
- id: mixed-line-ending
# Begin Checkers
- id: check-case-conflict
- id: check-merge-conflict
- repo: https://gitlab.com/pycqa/flake8
rev: 3.8.4
hooks:
- id: flake8
additional_dependencies:
- flake8-bugbear
- repo: https://github.com/PyCQA/bandit
rev: 1.7.0
hooks:
- id: bandit
exclude: |
(?x)(
^tests/|
^examples/
)
args:
- --quiet
- repo: https://github.com/psf/black
rev: 19.10b0
hooks:
- id: black
language_version: python3.8