chore: align renovate config with spglib conventions - #15
Merged
Conversation
Match spgrep's renovate setup: separate PRs per major version, and automerge patch updates across all managers rather than only CI and pre-commit. The required `ci` status check gates every automerge. Co-Authored-By: Claude <noreply@anthropic.com>
lan496
marked this pull request as ready for review
September 6, 2026 07:40
Renovate's pep621 manager selects its lockfile processor from the tool tables in pyproject.toml, not from the lockfile on disk. Without a [tool.uv] table it probed only for pdm.lock, found nothing, and the weekly lockFileMaintenance run silently produced no commit even though uv.lock is present. spglib/spgrep has this table and does get lockfile PRs. The table is intentionally empty: it only enables detection and leaves dependency resolution unchanged. Co-Authored-By: Claude <noreply@anthropic.com>
…v.lock" This reverts commit 6866d03.
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.
Summary
separateMultipleMajor: trueso a dependency several majors behind gets one PR per major step instead of a single jump.github-actionsandpre-commitones..github/renovate.json5in line with the setup already used in spglib/spgrep and spglib/moyo.Net diff is
.github/renovate.json5only. The middle two commits add and then revert a[tool.uv]table inpyproject.toml; see "Discarded change" below.Renovate has never run on this repository. The app is installed on the spglib organization but scoped to selected repositories, and spinforge is not among them; adding it there is a separate step.
Verification
Ran Renovate 44.65.5 against this branch (
--dry-run=full,useBaseBranchConfig: merge, schedule forced off) and read the resolved branch configs:automergerenovate/ci-and-devdependenciesrenovate/major-7/8/9/10-ci-and-devdependenciesrenovate/lock-file-maintenance-pythonseparateMultipleMajoris confirmed working: the major updates split into four branches rather than one.Two caveats on the new patch rule:
ci-and-devdependenciesgroup with a major will not automerge.github-actionsandpre-commit, and zeropep621. Runtime dependencies are declared with>=ranges, whichconfig:recommendedleaves alone, so the general patch rule has little practical effect beyond what the CI/pre-commit rule already covered.Discarded change
An earlier commit here added an empty
[tool.uv]table topyproject.toml, on the theory that Renovate was not maintaininguv.lock. That was wrong, and it has been reverted.The evidence came from a local
npx renovatethat silently resolved to version 37.440.7, which predates uv support entirely (itspep621manager ships onlyhatchandpdmprocessors). On Renovate 44, both this branch andmainresolvelockFiles: ["uv.lock"]andupdatedArtifacts: ["uv.lock"]with no[tool.uv]table present. TheNo pdm.lock foundline in the logs is the pdm processor declining the project, not a failure.Test plan
renovate-config-validator .github/renovate.json5passesrenovateand set to auto-merge[Claude Code] Generated with Claude Code