-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.pre-commit-config.yaml
136 lines (114 loc) · 3.24 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
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
exclude: '.git/|.tox/|venv/|.venv/'
default_stages: [pre-commit]
fail_fast: true
repos:
- repo: local
hooks:
- id: black
name: black
entry: black
language: system
files: '.*\.py$'
- id: isort
name: isort
entry: isort
language: system
files: '.*\.py$'
- id: flake8
name: flake8
entry: flake8
language: system
files: '.*\.py$'
- id: bandit
name: bandit
entry: bandit --configfile bandit.yml
language: system
files: 'boogiestats/.*\.py$'
- id: djlint reformat
name: djlint reformat
entry: djlint --profile django --reformat
language: system
files: '.*\.html$'
- id: djlint check
name: djlint check
entry: djlint --profile django --check --lint
language: system
files: '.*\.html$'
- id: check pending django migrations
name: check pending django migrations
entry: ./dev/check-pending-migrations.sh
language: system
files: 'boogiestats/.*\.py$'
- id: check poetry lock file
name: check poetry lock file
entry: poetry check --no-interaction
language: system
pass_filenames: false
files: '^pyproject\.toml$'
- id: check-added-large-files
name: check-added-large-files
entry: check-added-large-files
args: [ '--maxkb=512' ]
language: system
- id: check-ast
name: check-ast
entry: check-ast
language: system
files: '.*\.py$'
- id: check-case-conflict
name: check-case-conflict
entry: check-case-conflict
language: system
- id: check-docstring-first
name: check-docstring-first
entry: check-docstring-first
language: system
files: '.*\.py$'
- id: check-json
name: check-json
entry: check-json
language: system
files: '.*\.json$'
- id: check-merge-conflict
name: check-merge-conflict
entry: check-merge-conflict
language: system
- id: check-toml
name: check-toml
entry: check-toml
language: system
files: '.*\.toml$'
- id: check-xml
name: check-xml
entry: check-xml
language: system
files: '.*\.xml$'
- id: check-yaml
name: check-yaml
entry: check-yaml
language: system
types: [yaml]
- id: detect-private-key
name: detect-private-key
entry: detect-private-key
language: system
- id: end-of-file-fixer
name: end-of-file-fixer
entry: end-of-file-fixer
language: system
types: [ text ]
- id: trailing-whitespace-fixer
name: trailing-whitespace-fixer
entry: trailing-whitespace-fixer
language: system
types: [ text ]
- id: debug-statements
name: debug-statements
entry: debug-statement-hook
language: system
files: '.*\.py$'
- id: check-executables-have-shebangs
name: check-executables-have-shebangs
entry: check-executables-have-shebangs
language: system
types: [text, executable]