From f63566cfc3fb25c7344786e85adaa54d82396b0f Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Tue, 28 Nov 2023 09:56:19 -0500 Subject: [PATCH] fix: one more schema ending issue (#119) Signed-off-by: Henry Schreiner --- .pre-commit-config.yaml | 2 +- src/uhi/schema.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 37e0135..ba303ea 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -72,7 +72,7 @@ repos: - id: check-readthedocs - id: check-github-workflows - id: check-metaschema - files: ^src/uhi/resources/histogram.json$ + files: ^src/uhi/resources/histogram.schema.json$ - id: check-jsonschema name: Validate Histogram examples args: [--schemafile, src/uhi/resources/histogram.schema.json] diff --git a/src/uhi/schema.py b/src/uhi/schema.py index 3d1662e..d6da413 100644 --- a/src/uhi/schema.py +++ b/src/uhi/schema.py @@ -11,7 +11,7 @@ else: from importlib import resources -histogram_file = resources.files("uhi") / "resources/histogram.json" +histogram_file = resources.files("uhi") / "resources/histogram.schema.json" with histogram_file.open(encoding="utf-8") as f: histogram_schema = fastjsonschema.compile(json.load(f))