Skip to content

Commit 184a2c1

Browse files
chore: add pre-commit jsonschema check for profile_family & profile_release (#815)
This is ok to land before #811 because it just doesn't find any of the files until then.
1 parent f675fac commit 184a2c1

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.pre-commit-config.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,18 @@ repos:
7575
alias: check-jsonschema-cert-class
7676
files: ^arch/proc_cert_class/.*\.(yaml|yml)$
7777
args: ["--schemafile", "schemas/proc_cert_class_schema.json"]
78+
- id: check-jsonschema
79+
name: Validate profile family files with jsonschema
80+
stages: [pre-commit]
81+
alias: check-jsonschema-profile-family
82+
files: ^arch/profile_family/.*\.(yaml|yml)$
83+
args: ["--schemafile", "schemas/profile_family_schema.json"]
84+
- id: check-jsonschema
85+
name: Validate profile release files with jsonschema
86+
stages: [pre-commit]
87+
alias: check-jsonschema-profile-release
88+
files: ^arch/profile_release/.*\.(yaml|yml)$
89+
args: ["--schemafile", "schemas/profile_release_schema.json"]
7890
# Commenting because throwing errors and not sure this is complete yet
7991
# - id: check-jsonschema
8092
# alias: check-jsonschema-manual-version

0 commit comments

Comments
 (0)