-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy path.pre-commit-config.yaml
204 lines (204 loc) · 5.45 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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
---
repos:
- repo: local
hooks:
# pre-commit-hooks
- id: check-added-large-files
name: check-added-large-files
entry: check-added-large-files
language: system
require_serial: true
stages: [pre-commit, pre-push, manual]
- id: fix-byte-order-marker
name: fix-byte-order-marker
entry: fix-byte-order-marker
language: system
require_serial: true
types: [text]
- id: check-merge-conflict
name: check-merge-conflict
entry: check-merge-conflict
language: system
require_serial: true
types: [text]
- id: check-symlinks
name: check-symlinks
entry: check-symlinks
language: system
require_serial: true
types: [symlink]
- id: end-of-file-fixer
name: end-of-file-fixer
entry: end-of-file-fixer
language: system
require_serial: true
types: [text]
stages: [pre-commit, pre-push, manual]
- id: mixed-line-ending
name: mixed-line-ending
entry: mixed-line-ending
args: [--fix=lf]
language: system
require_serial: true
types: [text]
- id: trailing-whitespace-fixer
name: trailing-whitespace-fixer
entry: trailing-whitespace-fixer
language: system
require_serial: true
types: [text]
stages: [pre-commit, pre-push, manual]
- id: file-contents-sorter
name: file-contents-sorter
entry: file-contents-sorter
language: system
require_serial: true
files: ^(.gitignore|requirements.txt)$
- id: debug-statement-hook
name: debug-statement-hook
entry: debug-statement-hook
language: system
require_serial: true
types: [python]
- id: check-builtin-literals
name: check-builtin-literals
entry: check-builtin-literals
args: [--no-allow-dict-kwargs]
language: system
require_serial: true
types: [python]
- id: check-json
name: check-json
entry: check-json
language: system
require_serial: true
types: [json]
- id: check-toml
name: check-toml
entry: check-toml
language: system
require_serial: true
types: [toml]
- id: check-yaml
name: check-yaml
entry: check-yaml
args: [--unsafe]
language: system
require_serial: true
types: [yaml]
# pyupgrade
- id: pyupgrade
name: pyupgrade
entry: pyupgrade
args: [--py312-plus]
language: system
require_serial: true
types: [python]
# reorder-python-imports
- id: reorder-python-imports
name: reorder-python-imports
entry: reorder-python-imports
args: [--py312-plus, "--application-directories=src:testing"]
language: system
require_serial: true
types: [python]
# docformatter
- id: docformatter
name: docformatter
entry: docformatter
args: [--wrap-summaries=88, --wrap-descriptions=88, --blank, --in-place]
language: system
require_serial: true
types: [python]
# eradicate
- id: eradicate
name: eradicate
entry: eradicate
args: [--aggressive, --in-place, --error]
language: system
require_serial: true
types: [python]
# black
- id: black
name: black
entry: black
args: [--target-version=py312]
language: system
require_serial: true
types_or: [python, pyi]
# prettier
- id: prettier
name: prettier
entry: prettier
args: [--prose-wrap=always, --list-different, --ignore-unknown, --write]
language: system
require_serial: true
types: [text]
# flake8
- id: flake8
name: flake8
entry: flake8
language: system
require_serial: true
types: [python]
# yesqa
- id: yesqa
name: yesqa
entry: yesqa
language: system
require_serial: true
types: [python]
# mypy
- id: mypy
name: mypy
entry: mypy
args: [--extra-checks, --scripts-are-modules]
language: system
require_serial: true
types_or: [python, pyi]
# xenon
- id: xenon
name: xenon
entry: xenon
args: [--max-absolute=A, --max-modules=A, --max-average=A, --no-assert]
language: system
require_serial: true
types: [text]
# remark
- id: remark
name: remark
entry: remark
args: [--frail]
language: system
require_serial: true
types: [markdown]
# eslint
- id: eslint
name: eslint
entry: eslint
language: system
require_serial: true
types: [javascript]
# yamllint
- id: yamllint
name: yamllint
entry: yamllint
args: [--strict]
language: system
require_serial: true
types: [yaml]
# toml-sort
- id: toml-sort
name: toml-sort
entry: toml-sort
args: [--all, --no-comments, --in-place]
language: system
require_serial: true
types: [toml]
# jscpd
- id: jscpd
name: jscpd
entry: jscpd
language: system
require_serial: true
types: [text]