-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
76 lines (75 loc) · 1.93 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
repos:
- repo: local
hooks:
- id: check-added-large-files
args: ['--maxkb=500']
exclude: ^projects/pilot/configs/datasets/
name: Check added large files.
entry: check-added-large-files
language: system
- repo: local
hooks:
- id: end-of-file-fixer
name: Fix end-of-file
entry: end-of-file-fixer
language: system
types: [python]
- repo: local
hooks:
- id: trailing-whitespace
name: Trailing whitespace
entry: trailing-whitespace-fixer
language: system
types: [python]
- repo: local
hooks:
- id: check-merge-conflict
name: Check merge conflict
entry: check-merge-conflict
language: system
types: [python]
- repo: local
hooks:
- id: check-docstring-first
name: Check docstring first
entry: check-docstring-first
language: system
types: [python]
- repo: local
hooks:
- id: isort
name: Check python imports.
entry: isort --filter-files
language: system
types: [python]
- repo: local
hooks:
- id: black
name: Auto format python code.
entry: black -l 79
language: system
types: [python]
- repo: local
hooks:
- id: flake8
name: Check pep8.
entry: flake8
language: system
types: [python]
- repo: local
hooks:
- id: pydocstyle
name: Check docstring.
entry: pydocstyle
language: system
files: (?x)(^prediction/tmp/)
types: [python]
# - repo: local
# hooks:
# - id: import-linter
# name: import-linter
# description: Import Linter allows you to define and enforce rules for the internal and external imports within your Python project.
# entry: lint-imports
# language: python
# types: [python]
# pass_filenames: false