Skip to content
Merged
31 changes: 21 additions & 10 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
":ignoreModulesAndTests",
],

minimumReleaseAge: "2 days",

// https://docs.renovatebot.com/configuration-options/#labels
labels: ["dependencies"],

Expand All @@ -53,12 +55,26 @@

// https://docs.renovatebot.com/configuration-options/#packagerules
packageRules: [
// Ensure that all Ruff Rust dependencies are updated together, as they use a single versioning.
// Group all Rust/Cargo dependencies (including Ruff git tags) into a single PR.
{
matchManagers: ["cargo"],
groupName: "Rust dependencies",
},
// Group all Python dependencies (runtime, docs, typing, dev) into a single PR.
{
matchDatasources: ["github-tags"],
matchFileNames: ["Cargo.toml"],
matchPackageNames: ["astral-sh/ruff"],
groupName: "Ruff Rust",
matchManagers: ["pep621"],
matchFileNames: ["pyproject.toml"],
groupName: "Python dependencies",
},
// Group all CI/infra (GitHub Actions + pre-commit) into a single PR.
{
matchManagers: ["github-actions", "pre-commit"],
groupName: "CI and dev tooling",
},
{
matchDatasources: ["github-releases", "github-tags"],
matchPackageNames: ["astral-sh/uv", "astral-sh/uv-pre-commit"],
groupName: "CI and dev tooling",
},
// Create dedicated branch to update dependencies in tests.
{
Expand All @@ -84,10 +100,5 @@
// previous version to properly flag the dependency.
allowedVersions: "<4",
},
{
matchDatasources: ["github-releases", "github-tags"],
matchPackageNames: ["astral-sh/uv", "astral-sh/uv-pre-commit"],
groupName: "uv-version",
},
],
}