Skip to content

Commit f675fac

Browse files
chore: add name to check-jsonschema hook (#816)
this makes it easier to differentiate which cfg of this hook is running since there are multiple previously looked like this: ``` Validate files with jsonschema...........................................Passed Validate files with jsonschema...........................................Passed Validate files with jsonschema...........................................Passed Validate files with jsonschema...........................................Passed ``` now this: ``` Validate instruction files with jsonschema...........(no files to check)Skipped Validate CSR files with jsonschema...................(no files to check)Skipped Validate extension files with jsonschema.............(no files to check)Skipped Validate cert model files with jsonschema............(no files to check)Skipped Validate cert class files with jsonschema............(no files to check)Skipped ```
1 parent 88bd4ac commit f675fac

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,26 +46,31 @@ repos:
4646
rev: 0.33.0
4747
hooks:
4848
- id: check-jsonschema
49+
name: Validate instruction files with jsonschema
4950
stages: [pre-commit]
5051
alias: check-jsonschema-inst
5152
files: ^arch/inst/.*\.(yaml|yml)$
5253
args: ["--schemafile", "schemas/inst_schema.json"]
5354
- id: check-jsonschema
55+
name: Validate CSR files with jsonschema
5456
stages: [pre-commit]
5557
alias: check-jsonschema-csr
5658
files: ^arch/csr/.*\.(yaml|yml)$
5759
args: ["--schemafile", "schemas/csr_schema.json"]
5860
- id: check-jsonschema
61+
name: Validate extension files with jsonschema
5962
stages: [pre-commit]
6063
alias: check-jsonschema-ext
6164
files: ^arch/ext/.*\.(yaml|yml)$
6265
args: ["--schemafile", "schemas/ext_schema.json"]
6366
- id: check-jsonschema
67+
name: Validate cert model files with jsonschema
6468
stages: [pre-commit]
6569
alias: check-jsonschema-cert-model
6670
files: ^arch/proc_cert_model/.*\.(yaml|yml)$
6771
args: ["--schemafile", "schemas/proc_cert_model_schema.json"]
6872
- id: check-jsonschema
73+
name: Validate cert class files with jsonschema
6974
stages: [pre-commit]
7075
alias: check-jsonschema-cert-class
7176
files: ^arch/proc_cert_class/.*\.(yaml|yml)$

0 commit comments

Comments
 (0)