-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
107 lines (106 loc) · 3.29 KB
/
.pre-commit-config.yaml
File metadata and controls
107 lines (106 loc) · 3.29 KB
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
default_language_version:
python: python3.6
repos:
- repo: local
hooks:
- id: check-added-large-files
name: Check added large files.
entry: check-added-large-files
language: system
types: [python]
- 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: https://github.com/Quantco/pre-commit-mirrors-insert-license
- repo: local
hooks:
- id: insert-license
name: Insert license header
entry: insert-license
args:
- --license-base64
- "Q29weXJpZ2h0IChjKSAyMDI1IEJ5dGVkYW5jZSBMdGQuIGFuZC9vciBpdHMgYWZmaWxpYXRlcwoK
TGljZW5zZWQgdW5kZXIgdGhlIEFwYWNoZSBMaWNlbnNlLCBWZXJzaW9uIDIuMCAodGhlIExpY2Vu
c2UpOwp5b3UgbWF5IG5vdCB1c2UgdGhpcyBmaWxlIGV4Y2VwdCBpbiBjb21wbGlhbmNlIHdpdGgg
dGhlIExpY2Vuc2UuCllvdSBtYXkgb2J0YWluIGEgY29weSBvZiB0aGUgTGljZW5zZSBhdAoKICAg
IGh0dHA6Ly93d3cuYXBhY2hlLm9yZy9saWNlbnNlcy9MSUNFTlNFLTIuMAoKVW5sZXNzIHJlcXVp
cmVkIGJ5IGFwcGxpY2FibGUgbGF3IG9yIGFncmVlZCB0byBpbiB3cml0aW5nLCBzb2Z0d2FyZQpk
aXN0cmlidXRlZCB1bmRlciB0aGUgTGljZW5zZSBpcyBkaXN0cmlidXRlZCBvbiBhbiBBUyBJUyBC
QVNJUywKV0lUSE9VVCBXQVJSQU5USUVTIE9SIENPTkRJVElPTlMgT0YgQU5ZIEtJTkQsIGVpdGhl
ciBleHByZXNzIG9yIGltcGxpZWQuClNlZSB0aGUgTGljZW5zZSBmb3IgdGhlIHNwZWNpZmljIGxh
bmd1YWdlIGdvdmVybmluZyBwZXJtaXNzaW9ucyBhbmQKbGltaXRhdGlvbnMgdW5kZXIgdGhlIExp
Y2Vuc2UuCg=="
- --dynamic-years
- --comment-style
- "#"
language: system
types: [python]
# - repo: local
# hooks:
# - id: autoflake
# name: Remove unused imports.
# entry: autoflake -i --remove-all-unused-imports --ignore-init-module-imports --expand-star-imports -v
# 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 119
language: system
types: [python]
- repo: local
hooks:
- id: flake8
name: Check pep8.
entry: flake8 --max-line-length 119
language: system
types: [python]
- repo: local
hooks:
- id: pydocstyle
name: Check docstring.
entry: pydocstyle
language: system
exclude: (?x)(^tests/|^projects/)
types: [python]
- repo: local
hooks:
- id: mypy
name: Check static typing.
entry: mypy
language: system
exclude: (?x)(^tests/|^projects/|^configs/|^dev/|^tools/|/)
types: [python]