-
Notifications
You must be signed in to change notification settings - Fork 4
/
.pre-commit-config.yaml
41 lines (41 loc) · 1.05 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/asottile/seed-isort-config
rev: v1.9.1
hooks:
- id: seed-isort-config
- repo: https://github.com/pre-commit/mirrors-isort
rev: v4.3.21
hooks:
- id: isort
args: ["-rc"]
- repo: https://github.com/psf/black
rev: 19.3b0
hooks:
- id: black
args: ["--line-length=119"]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: trailing-whitespace
- id: check-yaml
- id: check-json
- id: end-of-file-fixer
- id: requirements-txt-fixer
- repo: https://github.com/pycqa/flake8
rev: 3.8.2
hooks:
- id: flake8
additional_dependencies: [
flake8-bugbear==20.1.4,
flake8-builtins==1.5.3,
flake8-debugger==3.2.1,
flake8-isort==3.0.0,
isort==4.3.21,
]
args: ["--config=setup.cfg"]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.761
hooks:
- id: mypy
args: ["--config=setup.cfg"]
exclude: configs/