Skip to content

Commit b77d04f

Browse files
authored
Merge pull request #491 from tpansino/patch-1
Enable checking .renovaterc.json5 files with pre-commit hook
2 parents d8fd281 + 8b16275 commit b77d04f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.pre-commit-hooks.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,8 @@
171171
(?x)^(
172172
renovate\.(json|json5)|
173173
\.(github|gitlab)/renovate\.(json|json5)|
174-
\.renovaterc(\.json)?
174+
\.renovaterc|
175+
\.renovaterc\.(json|json5)
175176
)$
176177
177178
# this hook is autogenerated from a script

src/check_jsonschema/catalog.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,8 @@ def _githubusercontent_url(owner: str, repo: str, ref: str, path: str) -> str:
168168
"files": [
169169
r"renovate\.(json|json5)",
170170
r"\.(github|gitlab)/renovate\.(json|json5)",
171-
r"\.renovaterc(\.json)?",
171+
r"\.renovaterc",
172+
r"\.renovaterc\.(json|json5)",
172173
],
173174
},
174175
},

0 commit comments

Comments
 (0)