From 365a32e0c107e9efeaadb1eea9502cf790ba0214 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edgar=20Ram=C3=ADrez=20Mondrag=C3=B3n?= Date: Tue, 25 Mar 2025 20:04:15 -0600 Subject: [PATCH] Use `types_or` for the `check-meltano` hook --- .pre-commit-hooks.yaml | 2 +- src/check_jsonschema/catalog.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index ef11b317e..80da2c0c6 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -177,7 +177,7 @@ meltano-manifest\.json| meltano-manifest\..+\.json )$ - types: [json,yaml] + types_or: [json,yaml] # this hook is autogenerated from a script # to modify this hook, update `src/check_jsonschema/catalog.py` diff --git a/src/check_jsonschema/catalog.py b/src/check_jsonschema/catalog.py index 4111a62c3..cc7f1587e 100644 --- a/src/check_jsonschema/catalog.py +++ b/src/check_jsonschema/catalog.py @@ -183,7 +183,7 @@ def _githubusercontent_url(owner: str, repo: str, ref: str, path: str) -> str: r"meltano-manifest\.json", r"meltano-manifest\..+\.json", ], - "types": ["json", "yaml"], + "types_or": ["json", "yaml"], }, }, "mergify": {