From d84e610120dd77384e014d5c858221cd0ec63cda Mon Sep 17 00:00:00 2001 From: Tom Pansino <2768420+tpansino@users.noreply.github.com> Date: Tue, 1 Oct 2024 11:35:56 -0400 Subject: [PATCH 1/3] Enable checking .renovaterc.json5 files with pre-commit hook --- .pre-commit-hooks.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index f3c96cd36..211d148d7 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -171,7 +171,7 @@ (?x)^( renovate\.(json|json5)| \.(github|gitlab)/renovate\.(json|json5)| - \.renovaterc(\.json)? + \.renovaterc\.(json|json5)? )$ # this hook is autogenerated from a script From a3696275382cd8762321150887efc9e96c0b5b59 Mon Sep 17 00:00:00 2001 From: Tom Pansino <2768420+tpansino@users.noreply.github.com> Date: Wed, 2 Oct 2024 09:37:12 -0400 Subject: [PATCH 2/3] Fix check-renovate pre-commit hook matching .renovaterc --- .pre-commit-hooks.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index 211d148d7..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|json5)? + \.renovaterc| + \.renovaterc\.(json|json5) )$ # this hook is autogenerated from a script From 8b1627541fcde0acb64b823940cc30f17dac7fe7 Mon Sep 17 00:00:00 2001 From: Stephen Rosen Date: Wed, 2 Oct 2024 10:11:52 -0500 Subject: [PATCH 3/3] Update catalog.py with new renovaterc paths --- src/check_jsonschema/catalog.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)", ], }, },