forked from queens-py/queens
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
78 lines (78 loc) · 2.26 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
77
78
default_stages: [pre-commit, pre-merge-commit, pre-push, manual]
repos:
- repo: local
hooks:
- id: trailing-whitespace
name: trim trailing whitespace
entry: trailing-whitespace-fixer
language: python
types: [text]
- id: end-of-file-fixer
name: fix end of files
entry: end-of-file-fixer
language: python
types: [text]
- id: check-added-large-files
name: check for added large files
entry: check-added-large-files
language: python
types: [text]
- id: check-license-header
name: check for correct license header
entry: licenseheaders
args: ["-t", "license_header.tmpl", '--files']
language: python
types: ["python"]
pass_filenames: true
- id: pydocstyle
name: pydocstyle
entry: pydocstyle
language: python
types: ["python"]
additional_dependencies: ["toml"]
- id: docformatter
name: docformatter
entry: docformatter
args: [--in-place]
language: python
types: ["python"]
- id: commitizen
name: commitizen
entry: cz
args: ['check', '--commit-msg-file', '.git/COMMIT_EDITMSG']
pass_filenames: false
language: system
stages: [commit-msg, manual]
- id: isort
name: isort (python)
entry: isort
language: python
always_run: false
pass_filenames: true
additional_dependencies: ["toml"]
- id: black
name: black
entry: black
language: python
types: ["python"]
always_run: false
pass_filenames: true
additional_dependencies: ["toml"]
- id: yamllint
name: yamllint
entry: yamllint
args:
- > # This is needed to lint the jinja templates
-d={extends: default, rules: {braces: {max-spaces-inside: 1}
, brackets: disable, document-start: disable}}
- -f=colored
language: python
types: ["yaml"]
- id: pylint
name: pylint
entry: pylint
language: python
types: ["python"]
additional_dependencies: ["toml"]
always_run: false
pass_filenames: true