-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
54 lines (54 loc) · 1.28 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-toml
- id: check-added-large-files
- repo: local
hooks:
- id: black
name: black
entry: black
language: system
types: [ python ]
exclude: '.*/migrations/.*'
args: [
'--line-length=120'
]
- id: flake8
name: flake8
entry: flake8
language: system
types: [ python ]
exclude: '.*/migrations/.*'
args: [
'--max-line-length=120',
'--extend-ignore=E203,W503'
]
- id: isort
name: isort
entry: isort
language: system
types: [ python ]
exclude: '.*/migrations/.*'
args: [
'--profile=black',
'--section-default=THIRDPARTY',
'-l=120'
]
- id: mypy
name: mypy
verbose: true
require_serial: true
entry: mypy
language: system
types: [ python ]
exclude: '.*/migrations/.*'
args: [
'--ignore-missing-imports',
'--disallow-untyped-defs',
'--warn-redundant-casts',
]