-
Notifications
You must be signed in to change notification settings - Fork 61
Expand file tree
/
Copy path.pre-commit-hooks.yaml
More file actions
354 lines (326 loc) · 13.2 KB
/
.pre-commit-hooks.yaml
File metadata and controls
354 lines (326 loc) · 13.2 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
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
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
- id: check-jsonschema
name: Validate files with jsonschema
description: 'Validate JSON or YAML files against a jsonschema on disk or fetched via HTTP(S)'
entry: check-jsonschema
language: python
types_or: [json,yaml]
# we need types_or support
minimum_pre_commit_version: 2.9.0
- id: check-metaschema
name: Validate JSON Schema files
description: 'Validate JSON Schema files against their matching metaschema'
entry: check-jsonschema --check-metaschema
language: python
types_or: [json,yaml]
# we need types_or support
minimum_pre_commit_version: 2.9.0
# --AUTOGEN_HOOKS_START-- #
# this hook is autogenerated from a script
# to modify this hook, update `src/check_jsonschema/catalog.py`
# and run `just generate-hooks` or `tox run -e generate-hooks-config`
- id: check-azure-pipelines
name: Validate Azure Pipelines
description: 'Validate Azure Pipelines config against the schema provided by Microsoft'
entry: check-jsonschema --builtin-schema vendor.azure-pipelines --data-transform azure-pipelines --regex-variant nonunicode
language: python
files: ^(\.)?azure-pipelines\.(yml|yaml)$
types: [yaml]
# this hook is autogenerated from a script
# to modify this hook, update `src/check_jsonschema/catalog.py`
# and run `just generate-hooks` or `tox run -e generate-hooks-config`
- id: check-bamboo-spec
name: Validate Bamboo Specs
description: 'Validate Bamboo Specs against the schema provided by SchemaStore'
entry: check-jsonschema --builtin-schema vendor.bamboo-spec
language: python
files: ^bamboo-specs/.*\.(yml|yaml)$
types: [yaml]
# this hook is autogenerated from a script
# to modify this hook, update `src/check_jsonschema/catalog.py`
# and run `just generate-hooks` or `tox run -e generate-hooks-config`
- id: check-bitbucket-pipelines
name: Validate Bitbucket Pipelines
description: 'Validate Bitbucket Pipelines against the schema provided by SchemaStore'
entry: check-jsonschema --builtin-schema vendor.bitbucket-pipelines
language: python
files: bitbucket-pipelines\.(yml|yaml)$
types: [yaml]
# this hook is autogenerated from a script
# to modify this hook, update `src/check_jsonschema/catalog.py`
# and run `just generate-hooks` or `tox run -e generate-hooks-config`
- id: check-buildkite
name: Validate Buildkite Pipelines
description: 'Validate Buildkite Pipelines against the schema provided by Buildkite'
entry: check-jsonschema --builtin-schema vendor.buildkite
language: python
files: >
(?x)^(
buildkite\.(yml|yaml|json)|
buildkite\.(.+)\.(yml|yaml|json)|
(.*/)?\.buildkite/pipeline\.(yml|yaml|json)|
(.*/)?\.buildkite/pipeline\.(.+)\.(yml|yaml|json)
)$
types_or: [json,yaml]
# this hook is autogenerated from a script
# to modify this hook, update `src/check_jsonschema/catalog.py`
# and run `just generate-hooks` or `tox run -e generate-hooks-config`
- id: check-changie
name: Validate Changie config
description: 'Validate Changie configuration'
entry: check-jsonschema --builtin-schema vendor.changie
language: python
files: ^\.changie\.(yml|yaml)$
types: [yaml]
# this hook is autogenerated from a script
# to modify this hook, update `src/check_jsonschema/catalog.py`
# and run `just generate-hooks` or `tox run -e generate-hooks-config`
- id: check-circle-ci
name: Validate CircleCI config
description: 'Validate CircleCI config against the schema provided by SchemaStore'
entry: check-jsonschema --builtin-schema vendor.circle-ci
language: python
files: ^\.circleci/config\.(yml|yaml)$
# this hook is autogenerated from a script
# to modify this hook, update `src/check_jsonschema/catalog.py`
# and run `just generate-hooks` or `tox run -e generate-hooks-config`
- id: check-citation-file-format
name: Validate Citation File Format
description: 'Validate Citation File Format'
entry: check-jsonschema --builtin-schema vendor.citation-file-format
language: python
files: ^CITATION.cff$
# this hook is autogenerated from a script
# to modify this hook, update `src/check_jsonschema/catalog.py`
# and run `just generate-hooks` or `tox run -e generate-hooks-config`
- id: check-cloudbuild
name: Validate Google Cloud Build config
description: 'Validate Google Cloud Build config against the schema provided by SchemaStore'
entry: check-jsonschema --builtin-schema vendor.cloudbuild
language: python
files: ^cloudbuild\.(yml|yaml|json)$
types_or: [json,yaml]
# this hook is autogenerated from a script
# to modify this hook, update `src/check_jsonschema/catalog.py`
# and run `just generate-hooks` or `tox run -e generate-hooks-config`
- id: check-codecov
name: Validate Codecov config
description: 'Validate Codecov config against the schema provided by SchemaStore'
entry: check-jsonschema --builtin-schema vendor.codecov
language: python
files: >
(?x)^(
^((\.github|dev)/)?\.?codecov\.ya?ml$
)$
types: [yaml]
# this hook is autogenerated from a script
# to modify this hook, update `src/check_jsonschema/catalog.py`
# and run `just generate-hooks` or `tox run -e generate-hooks-config`
- id: check-compose-spec
name: Validate Docker Compose files
description: 'Validate Docker Compose files against the schema provided by SchemaStore'
entry: check-jsonschema --builtin-schema vendor.compose-spec
language: python
files: >
(?x)^(
([^/]*/)*docker-compose(\.[\.a-zA-Z0-9_-]*)*\.(yml|yaml)|
([^/]*/)*compose(\.[\.a-zA-Z0-9_-]*)*\.(yml|yaml)
)$
types: [yaml]
# this hook is autogenerated from a script
# to modify this hook, update `src/check_jsonschema/catalog.py`
# and run `just generate-hooks` or `tox run -e generate-hooks-config`
- id: check-dependabot
name: Validate Dependabot Config (v2)
description: 'Validate Dependabot Config (v2) against the schema provided by SchemaStore'
entry: check-jsonschema --builtin-schema vendor.dependabot
language: python
files: ^\.github/dependabot\.(yml|yaml)$
types: [yaml]
# this hook is autogenerated from a script
# to modify this hook, update `src/check_jsonschema/catalog.py`
# and run `just generate-hooks` or `tox run -e generate-hooks-config`
- id: check-drone-ci
name: Validate Drone-CI Config
description: 'Validate Drone-CI Config against the schema provided by SchemaStore'
entry: check-jsonschema --builtin-schema vendor.drone-ci
language: python
files: ^\.drone\.yml$
types: [yaml]
# this hook is autogenerated from a script
# to modify this hook, update `src/check_jsonschema/catalog.py`
# and run `just generate-hooks` or `tox run -e generate-hooks-config`
- id: check-github-actions
name: Validate GitHub Actions
description: 'Validate GitHub Actions against the schema provided by SchemaStore'
entry: check-jsonschema --builtin-schema vendor.github-actions
language: python
files: >
(?x)^(
action\.(yml|yaml)|
\.github/actions/(.+/)?action\.(yml|yaml)
)$
types: [yaml]
# this hook is autogenerated from a script
# to modify this hook, update `src/check_jsonschema/catalog.py`
# and run `just generate-hooks` or `tox run -e generate-hooks-config`
- id: check-github-discussion
name: Validate GitHub discussion
description: 'Validate GitHub discussion against the schema provided by SchemaStore'
entry: check-jsonschema --builtin-schema vendor.github-discussion
language: python
files: >
(?x)^(
^\.github/DISCUSSION_TEMPLATE/.+\.ya?ml$
)$
types: [yaml]
# this hook is autogenerated from a script
# to modify this hook, update `src/check_jsonschema/catalog.py`
# and run `just generate-hooks` or `tox run -e generate-hooks-config`
- id: check-github-issue-config
name: Validate GitHub issue config
description: 'Validate GitHub issue config against the schema provided by SchemaStore'
entry: check-jsonschema --builtin-schema vendor.github-issue-config
language: python
files: >
(?x)^(
^\.github/ISSUE_TEMPLATE/config\.yml$
)$
types: [yaml]
# this hook is autogenerated from a script
# to modify this hook, update `src/check_jsonschema/catalog.py`
# and run `just generate-hooks` or `tox run -e generate-hooks-config`
- id: check-github-issue-forms
name: Validate GitHub issue forms
description: 'Validate GitHub issue forms against the schema provided by SchemaStore'
entry: check-jsonschema --builtin-schema vendor.github-issue-forms
language: python
files: >
(?x)^(
^\.github/ISSUE_TEMPLATE/(?!config\.ya?ml$).+$
)$
types: [yaml]
# this hook is autogenerated from a script
# to modify this hook, update `src/check_jsonschema/catalog.py`
# and run `just generate-hooks` or `tox run -e generate-hooks-config`
- id: check-github-workflows
name: Validate GitHub Workflows
description: 'Validate GitHub Workflows against the schema provided by SchemaStore'
entry: check-jsonschema --builtin-schema vendor.github-workflows
language: python
files: ^\.github/workflows/[^/]+$
types: [yaml]
# this hook is autogenerated from a script
# to modify this hook, update `src/check_jsonschema/catalog.py`
# and run `just generate-hooks` or `tox run -e generate-hooks-config`
- id: check-gitlab-ci
name: Validate GitLab CI config
description: 'Validate GitLab CI config against the schema provided by SchemaStore'
entry: check-jsonschema --builtin-schema vendor.gitlab-ci --data-transform gitlab-ci --regex-variant nonunicode
language: python
files: ^.*\.gitlab-ci\.(yml|yaml)$
types: [yaml]
# this hook is autogenerated from a script
# to modify this hook, update `src/check_jsonschema/catalog.py`
# and run `just generate-hooks` or `tox run -e generate-hooks-config`
- id: check-meltano
name: Validate Meltano Config
description: 'Validate Meltano config against the schema provided by Meltano'
entry: check-jsonschema --builtin-schema vendor.meltano
language: python
files: >
(?x)^(
.*meltano\.yml|
meltano-manifest\.json|
meltano-manifest\..+\.json
)$
types_or: [json,yaml]
# this hook is autogenerated from a script
# to modify this hook, update `src/check_jsonschema/catalog.py`
# and run `just generate-hooks` or `tox run -e generate-hooks-config`
- id: check-mergify
name: Validate Mergify config
description: 'Validate Mergify config against the schema provided by SchemaStore'
entry: check-jsonschema --builtin-schema vendor.mergify
language: python
files: >
(?x)^(
\.mergify\.yml|
\.mergify/config\.yml|
\.github/mergify\.yml
)$
types: [yaml]
# this hook is autogenerated from a script
# to modify this hook, update `src/check_jsonschema/catalog.py`
# and run `just generate-hooks` or `tox run -e generate-hooks-config`
- id: check-readthedocs
name: Validate ReadTheDocs Config
description: 'Validate ReadTheDocs config against the schema provided by ReadTheDocs'
entry: check-jsonschema --builtin-schema vendor.readthedocs
language: python
files: ^\.readthedocs\.(yml|yaml)$
types: [yaml]
# this hook is autogenerated from a script
# to modify this hook, update `src/check_jsonschema/catalog.py`
# and run `just generate-hooks` or `tox run -e generate-hooks-config`
- id: check-renovate
name: Validate Renovate Config
description: 'Validate Renovate config against the schema provided by Renovate (does not support renovate config in package.json)'
entry: check-jsonschema --builtin-schema vendor.renovate --regex-variant nonunicode
language: python
files: >
(?x)^(
renovate\.(json|json5)|
\.(github|gitlab)/renovate\.(json|json5)|
\.renovaterc|
\.renovaterc\.(json|json5)
)$
# this hook is autogenerated from a script
# to modify this hook, update `src/check_jsonschema/catalog.py`
# and run `just generate-hooks` or `tox run -e generate-hooks-config`
- id: check-snapcraft
name: Validate snapcraft files
description: 'Validate snapcraft files against the schema provided by Canonical'
entry: check-jsonschema --builtin-schema vendor.snapcraft
language: python
files: ^(.+/)?snapcraft\.yaml$
types: [yaml]
# this hook is autogenerated from a script
# to modify this hook, update `src/check_jsonschema/catalog.py`
# and run `just generate-hooks` or `tox run -e generate-hooks-config`
- id: check-taskfile
name: Validate Taskfile Config
description: 'Validate Taskfile config against the schema provided by Task'
entry: check-jsonschema --builtin-schema vendor.taskfile
language: python
files: >
(?x)^(
Taskfile\.(yml|yaml)|
taskfile\.(yml|yaml)|
Taskfile\.dist\.(yml|yaml)|
taskfile\.dist\.(yml|yaml)
)$
types: [yaml]
# this hook is autogenerated from a script
# to modify this hook, update `src/check_jsonschema/catalog.py`
# and run `just generate-hooks` or `tox run -e generate-hooks-config`
- id: check-travis
name: Validate Travis Config
description: 'Validate Travis Config against the schema provided by SchemaStore'
entry: check-jsonschema --builtin-schema vendor.travis
language: python
files: ^\.travis\.(yml|yaml)$
types: [yaml]
# this hook is autogenerated from a script
# to modify this hook, update `src/check_jsonschema/catalog.py`
# and run `just generate-hooks` or `tox run -e generate-hooks-config`
- id: check-woodpecker-ci
name: Validate Woodpecker Config
description: 'Validate Woodpecker Config against the schema provided by SchemaStore'
entry: check-jsonschema --builtin-schema vendor.woodpecker-ci
language: python
files: >
(?x)^(
^\.woodpecker\.(yml|yaml)$|
^\.woodpecker/.+\.(yml|yaml)$
)$
types: [yaml]