diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index f3c96cd36..895467dd9 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -171,7 +171,8 @@ (?x)^( renovate\.(json|json5)| \.(github|gitlab)/renovate\.(json|json5)| - \.renovaterc(\.json)? + \.renovaterc| + \.renovaterc\.(json|json5) )$ # this hook is autogenerated from a script diff --git a/src/check_jsonschema/catalog.py b/src/check_jsonschema/catalog.py index 6724284f6..f8cad240c 100644 --- a/src/check_jsonschema/catalog.py +++ b/src/check_jsonschema/catalog.py @@ -168,7 +168,8 @@ def _githubusercontent_url(owner: str, repo: str, ref: str, path: str) -> str: "files": [ r"renovate\.(json|json5)", r"\.(github|gitlab)/renovate\.(json|json5)", - r"\.renovaterc(\.json)?", + r"\.renovaterc", + r"\.renovaterc\.(json|json5)", ], }, },