Skip to content

Commit 8dfe356

Browse files
WIP
1 parent f91ce90 commit 8dfe356

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.pre-commit-config.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,42 @@ repos:
1212
- id: check-merge-conflict
1313
args: ["--assume-in-merge"]
1414
exclude: \.adoc$ # sections titles Level 6 "=======" get flagged otherwise
15+
- id: check-json
16+
exclude: ^\.devcontainer/ # Uses JSONC (comments)
17+
- id: check-yaml
18+
19+
- repo: https://github.com/rbubley/mirrors-prettier
20+
rev: v3.3.3
21+
hooks:
22+
- id: prettier
23+
files: \.(json|yml|yaml)$
24+
exclude: schemas/json-schema-draft-07.json
25+
26+
- repo: https://github.com/python-jsonschema/check-jsonschema
27+
rev: 0.29.4
28+
hooks:
29+
- id: check-jsonschema
30+
alias: check-jsonschema-inst
31+
files: ^arch/inst/.*\.(yaml|yml)$
32+
args: ["--schemafile", "schemas/inst_schema.json"]
33+
- id: check-jsonschema
34+
alias: check-jsonschema-csr
35+
files: ^arch/csr/.*\.(yaml|yml)$
36+
args: ["--schemafile", "schemas/csr_schema.json"]
37+
- id: check-jsonschema
38+
alias: check-jsonschema-ext
39+
files: ^arch/ext/.*\.(yaml|yml)$
40+
args: ["--schemafile", "schemas/ext_schema.json"]
41+
- id: check-jsonschema
42+
alias: check-jsonschema-cert-model
43+
files: ^arch/certificate_model/.*\.(yaml|yml)$
44+
args: ["--schemafile", "schemas/cert_model_schema.json"]
45+
- id: check-jsonschema
46+
alias: check-jsonschema-cert-class
47+
files: ^arch/certificate_class/.*\.(yaml|yml)$
48+
args: ["--schemafile", "schemas/cert_class_schema.json"]
49+
# Commenting because throwing errors and not sure this is complete yet
50+
# - id: check-jsonschema
51+
# alias: check-jsonschema-manual-version
52+
# files: ^arch/manual/.*\.(yaml|yml)$
53+
# args: ["--schemafile", "schemas/manual_version_schema.json"]

0 commit comments

Comments
 (0)