From be580f4d9a79f7b35e89ed08f41f6cd5c570b2ba Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 13 Jan 2025 19:57:03 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/python-jsonschema/check-jsonschema: 0.30.0 → 0.31.0](https://github.com/python-jsonschema/check-jsonschema/compare/0.30.0...0.31.0) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b523ee613..437528043 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,7 +1,7 @@ repos: # dogfood - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.30.0 + rev: 0.31.0 hooks: - id: check-dependabot - id: check-github-workflows From 8079ac3d3678431f8279e68fa1ac761be954d145 Mon Sep 17 00:00:00 2001 From: Stephen Rosen Date: Mon, 13 Jan 2025 15:07:58 -0600 Subject: [PATCH 2/2] Set self-check of azure-pipelines to nonunicode This is the only schema (to date) which provides an invalid regex under unicode-mode evaluation. Tweak the metaschema check to agree with it. --- .pre-commit-config.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 437528043..4eede38f1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,6 +9,11 @@ repos: - id: check-metaschema name: Validate Vendored Schemas files: ^src/check_jsonschema/builtin_schemas/vendor/.*\.json$ + exclude: ^src/check_jsonschema/builtin_schemas/vendor/azure-pipelines\.json$ + - id: check-metaschema + name: Validate Vendored Schemas (nonunicode regexes) + files: ^src/check_jsonschema/builtin_schemas/vendor/azure-pipelines\.json$ + args: ["--regex-variant", "nonunicode"] - id: check-jsonschema name: Validate Test Configs args: ["--schemafile", "tests/example-files/config_schema.json"]