Repository navigation
chore: enable Renovate's pre-commit manager in the shared preset - #8
Merged
Merged
Conversation
Renovate disables the pre-commit manager by default, so the hook revs pinned in .pre-commit-config.yaml never get update PRs. Several repos still pin 2023-era hooks (black 23.1.0, flynt 0.77, pyupgrade v3.3.1) that predate the removal of ast.Str in Python 3.12 and crash on the current runner Pythons. Repos where the pre-commit.ci app already does the autoupdates (diracx, diracx-charts) disable this per-repo to avoid duplicate update PRs. Part of DIRACGrid#5.
fstagni
added a commit
to fstagni/diracx
that referenced
this pull request
Nov 17, 2026
…autoupdates The shared preset enables Renovate's pre-commit manager (DIRACGrid/.github#8), but the pre-commit.ci app already posts the weekly 'pre-commit autoupdate' PRs here. Disable the manager per-repo to avoid duplicate update PRs. Part of DIRACGrid/.github#5.
This was referenced Nov 17, 2026
fstagni
added a commit
to fstagni/DIRAC
that referenced
this pull request
Nov 17, 2026
Same pattern as the other DIRACGrid repositories (intercede, signurlarity, diracx-charts, diracx): pre-commit/action runs the hooks and pre-commit-ci/lite-action pushes auto-fixes to PR branches. Hook rev updates come from Renovate's pre-commit manager (DIRACGrid/.github#8). Python stays pinned to 3.11 until the pinned hooks (flynt 0.77, pyupgrade v3.3.1, black 23.1.0) are updated, as they predate the removal of ast.Str in Python 3.12. Part of DIRACGrid/.github#5.
fstagni
added a commit
to fstagni/WebAppDIRAC
that referenced
this pull request
Nov 17, 2026
Same pattern as the other DIRACGrid repositories (intercede, signurlarity, diracx-charts, diracx): pre-commit/action runs the hooks and pre-commit-ci/lite-action pushes auto-fixes to PR branches. Hook rev updates come from Renovate's pre-commit manager (DIRACGrid/.github#8). Python stays pinned to 3.11 until the pinned hooks (flynt 0.77, pyupgrade v3.10.1, black 23.7.0) are updated, as they predate the removal of ast.Str in Python 3.12. Part of DIRACGrid/.github#5.
aldbr
added a commit
to fstagni/diraccfg
that referenced
this pull request
Nov 17, 2026
The shared preset enables it for every adopter (DIRACGrid/.github#8). Assisted-by: Claude:claude-opus-5-5
- one grouped PR for all pre-commit hook updates instead of one per hook - digest updates of third-party Actions pinned to a branch (e.g. pypa/gh-action-pypi-publish # release/v1) have no release timestamp, so minimumReleaseAge held them forever; let them through while versioned refs keep the cooldown Assisted-by: Claude:claude-opus-5-5
aldbr
approved these changes
Nov 17, 2026
This was referenced Nov 17, 2026
aldbr
added a commit
to fstagni/diracx
that referenced
this pull request
Nov 17, 2026
pre-commit.ci already opens the weekly hook autoupdate PRs in this repo, so Renovate's pre-commit manager (enabled in the shared preset by DIRACGrid/.github#8) would only duplicate them. Assisted-by: Claude:claude-opus-5-5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #5.
Renovate disables the pre-commit manager by default, so the hook revs pinned in
.pre-commit-config.yamlnever get update PRs — while the GitHub Actions in the same repos are digest-pinned and Renovate-managed. Several repos still pin 2023-era hooks (black 23.1.0,flynt 0.77,pyupgrade v3.3.1) that predate the removal ofast.Strin Python 3.12 and crash on current runner Pythons (already seen in diraccfg, where the CI pre-commit job had to pin Python 3.11 as a workaround).Audit of how hook updates are done today:
diracx: the pre-commit.ci app posts weekly[pre-commit.ci] pre-commit autoupdatePRs — hooks are fresh, no Renovate manager neededdiracx-charts: the app is installed (last autoupdate Dec 2025)intercede,signurlarity,diracx-charts: onlypre-commit-ci/lite-action(runs hooks, no update mechanism)Enabling the manager once here covers all preset adopters; it is a no-op for repos without
.pre-commit-config.yaml. Repos where the pre-commit.ci app already does the autoupdates (diracx, diracx-charts) should disable it per-repo to avoid duplicate update PRs.Note: expect a first wave of hook-update PRs in the stale repos (e.g.
black 23.1.0 → 26.xon DIRACintegrationis a large formatting change), and release branches withbaseBranchPatternswill get them too — hold those back per-repo if unwanted.Also in this PR (22fdd9c):
pre-commit hooksPR per repo (otherwise one PR per hook: 4 in diraccfg, 6 in DIRAC, 7 in WebAppDIRAC).pypa/gh-action-pypi-publish@<sha> # release/v1) have no release timestamp, so with the defaultminimumReleaseAgeBehaviour: timestamp-requiredtheir digest updates were held forever (docs). They now usetimestamp-optional; versioned refs (# v4.2.0) keep the 7-day cooldown.