forked from mondeja/check-jsonschema
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-hooks.yaml
More file actions
99 lines (88 loc) · 3.24 KB
/
.pre-commit-hooks.yaml
File metadata and controls
99 lines (88 loc) · 3.24 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
- 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-- #
- 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
language: python
files: ^(\.)?azure-pipelines.(yml|yaml)$
types: [yaml]
- 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]
- 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$
types: [yaml]
- 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/.*
)$
types: [yaml]
- 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]
- 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
language: python
files: ^.*\.gitlab-ci.yml$
types: [yaml]
- 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]
- 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
language: python
files: >
(?x)^(
renovate\.(json|json5)|
\.(github|gitlab)/renovate\.(json|json5)|
\.renovaterc(\.json)?
)$
- 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]