-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pre-commit-config.yaml
59 lines (57 loc) · 1.24 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
repos:
- repo: local
hooks:
- id: autoflake
stages: [commit]
name: autoflake
entry: autoflake
language: system
types: [python]
args:
- --in-place
- --remove-all-unused-imports
- --expand-star-imports
- --ignore-init-module-imports
- repo: local
hooks:
- id: isort
stages: [commit]
name: isort
entry: isort
language: system
types: [python]
args:
- --atomic
- --force-alphabetical-sort-within-sections
- --remove-redundant-aliases
- --profile=black
- repo: local
hooks:
- id: black
stages: [commit]
name: black
entry: black
require_serial: true
language: system
types: [python]
files: .
- repo: local
hooks:
- id: flake8
stages: [commit]
name: flake8
entry: flake8
language: system
types: [python]
- repo: local
hooks:
- id: mypy
stages: [commit]
name: mypy
entry: mypy
require_serial: true
language: system
types: [python]
files: .
args:
- --config=back/mypy.ini