-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
39 lines (38 loc) · 1.1 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
repos:
- repo: local
hooks:
- id: isort
name: isort
description: 'Sort imports'
entry: isort
language: system
types: [python]
# We defined that we want to run this step when we try to commit.
# If you want to apply it before push juste replace commit with push.
stages: [commit]
# Add all the arguments you want to the Isort command here
# Make sure to make it compatible with black
args:
- -rc
- --use-parentheses
- --multi-line=3
- id: black
name: black
language: system
description: 'Format code'
entry: black
types: [python]
args:
- --line-length=120
- id: flake8
name: flake8
description: 'Check logic issues'
language: system
entry: flake8
types: [python]
- id: mypy
name: mypy
description: 'Check typing'
language: system
entry: mypy
types: [python]