From dfb65a130a9b73ec2b442ff21e24bb1c907a70e8 Mon Sep 17 00:00:00 2001 From: Ambroise Vincent Date: Wed, 14 Jun 2023 08:24:28 +0100 Subject: [PATCH] ci(pre-commit): Add check-jsonschema Use it to validate the JSON Schema files against their meta-schema. Issue-Id: SCM-6366 Signed-off-by: Ambroise Vincent Change-Id: I4b4990972ef7da9b4bfe33dc350fc157a27a47bb --- .pre-commit-config.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0aed9c0ba2f96..a5ca7b6cf37fa 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -78,6 +78,12 @@ repos: args: [--quiet] exclude: .cu + - repo: https://github.com/python-jsonschema/check-jsonschema + rev: 0.23.2 + hooks: + - id: check-metaschema + files: ^.+/schema/.*schema\.json$ + - repo: local hooks: - id: prettier-svg