Skip to content

Commit 8079ac3

Browse files
committed
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.
1 parent be580f4 commit 8079ac3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ repos:
99
- id: check-metaschema
1010
name: Validate Vendored Schemas
1111
files: ^src/check_jsonschema/builtin_schemas/vendor/.*\.json$
12+
exclude: ^src/check_jsonschema/builtin_schemas/vendor/azure-pipelines\.json$
13+
- id: check-metaschema
14+
name: Validate Vendored Schemas (nonunicode regexes)
15+
files: ^src/check_jsonschema/builtin_schemas/vendor/azure-pipelines\.json$
16+
args: ["--regex-variant", "nonunicode"]
1217
- id: check-jsonschema
1318
name: Validate Test Configs
1419
args: ["--schemafile", "tests/example-files/config_schema.json"]

0 commit comments

Comments
 (0)