From 008b7d34d9f9f19c9d600ff2e97676c50f6d6514 Mon Sep 17 00:00:00 2001 From: Doug Goldstein Date: Wed, 12 Aug 2026 10:08:55 -0500 Subject: [PATCH] chore(pre-commit): validate the shared renovate presets The renovate-config-validator hook's default files pattern is (^|/).?renovate(?:rc)?(?:\.json5?)?$, which matches .github/renovate.json but not .github/renovate/*.json. The shared presets that this repo and undercloud-deploy both extend were therefore never validated locally -- the fileMatch rename in #2212 was skipped by the hook entirely. Extend the pattern to cover them. All seven presets pass as-is, and injecting an unknown option into one makes the hook fail as expected. Co-Authored-By: Claude Opus 5 (1M context) --- .pre-commit-config.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e3fab5fd3..eb8ac3001 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -82,6 +82,10 @@ repos: rev: 40.8.1 hooks: - id: renovate-config-validator + # the hook's default pattern only matches renovate.json/.renovaterc, so + # extend it to the shared presets under .github/renovate/ that this repo + # and undercloud-deploy extend + files: '(^|/)\.?renovate(?:rc)?(?:\.json5?)?$|^\.github/renovate/.+\.json5?$' - repo: https://github.com/RobertCraigie/pyright-python rev: v1.1.408 hooks: