-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
54 lines (49 loc) · 1.13 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
default_stages: [commit]
repos:
- repo: local
hooks:
- id: black
name: format-code
entry: python -m
args:
- black
language: system
types: [python]
exclude: vendor/
- repo: local
hooks:
- id: isort
name: sort-imports
entry: python -m
args: ["isort", "--profile", "black"]
language: system
types: [python]
exclude: vendor/
- repo: local
hooks:
- id: pylint
name: lint-code
entry: python -m
args:
- pylint
language: system
types: [python]
exclude: vendor/
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-added-large-files
args: ["--maxkb=50000"]
exclude: vendor/
- repo: https://gitlab.com/iamlikeme/nbhooks
rev: 1.0.0
hooks:
- id: nb-ensure-clean
name: nb-ensure-clean
files: \.ipynb$
exclude: \_ko.ipynb$|vendor/
- repo: https://github.com/woile/commitizen
rev: v2.4.1
hooks:
- id: commitizen
stages: [commit-msg]