Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
kbroch-rivosinc committed Dec 10, 2024
1 parent f91ce90 commit 8dfe356
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,42 @@ repos:
- id: check-merge-conflict
args: ["--assume-in-merge"]
exclude: \.adoc$ # sections titles Level 6 "=======" get flagged otherwise
- id: check-json
exclude: ^\.devcontainer/ # Uses JSONC (comments)
- id: check-yaml

- repo: https://github.com/rbubley/mirrors-prettier
rev: v3.3.3
hooks:
- id: prettier
files: \.(json|yml|yaml)$
exclude: schemas/json-schema-draft-07.json

- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.29.4
hooks:
- id: check-jsonschema
alias: check-jsonschema-inst
files: ^arch/inst/.*\.(yaml|yml)$
args: ["--schemafile", "schemas/inst_schema.json"]
- id: check-jsonschema
alias: check-jsonschema-csr
files: ^arch/csr/.*\.(yaml|yml)$
args: ["--schemafile", "schemas/csr_schema.json"]
- id: check-jsonschema
alias: check-jsonschema-ext
files: ^arch/ext/.*\.(yaml|yml)$
args: ["--schemafile", "schemas/ext_schema.json"]
- id: check-jsonschema
alias: check-jsonschema-cert-model
files: ^arch/certificate_model/.*\.(yaml|yml)$
args: ["--schemafile", "schemas/cert_model_schema.json"]
- id: check-jsonschema
alias: check-jsonschema-cert-class
files: ^arch/certificate_class/.*\.(yaml|yml)$
args: ["--schemafile", "schemas/cert_class_schema.json"]
# Commenting because throwing errors and not sure this is complete yet
# - id: check-jsonschema
# alias: check-jsonschema-manual-version
# files: ^arch/manual/.*\.(yaml|yml)$
# args: ["--schemafile", "schemas/manual_version_schema.json"]

0 comments on commit 8dfe356

Please sign in to comment.