Skip to content

Commit

Permalink
chore(renovate): update test dependencies (#1020)
Browse files Browse the repository at this point in the history
* chore(renovate): update test dependencies

* chore(renovate): move config under `.github`

* chore(renovate): remove unneeded Ruff changelog URL

`ruff-pre-commit` releases already link to `ruff` changelog.

* chore(renovate): use non-deprecated GH Actions preset

* ci: use new path for `renovate.json5`
  • Loading branch information
mkniewallner authored Jan 11, 2025
1 parent 653f284 commit fb79dcb
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 7 deletions.
28 changes: 22 additions & 6 deletions renovate.json5 → .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,16 @@
// https://docs.renovatebot.com/presets-default/#rebasestaleprs
":rebaseStalePrs",

// https://docs.renovatebot.com/presets-regexManagers/#regexmanagersgithubactionsversions
"regexManagers:githubActionsVersions",
// https://docs.renovatebot.com/presets-customManagers/#custommanagersgithubactionsversions
"customManagers:githubActionsVersions",
],

// https://docs.renovatebot.com/configuration-options/#ignorepresets
ignorePresets: [
// https://docs.renovatebot.com/presets-default/#ignoremodulesandtests
// By default, some directories, including "tests", are ignored. Since we do want Renovate to pick up dependencies
// in "tests" directory, we explicitly opt out from this preset.
":ignoreModulesAndTests",
],

// https://docs.renovatebot.com/configuration-options/#labels
Expand All @@ -43,12 +51,20 @@
// https://docs.renovatebot.com/configuration-options/#packagerules
packageRules: [
{
matchPackageNames: ["uv", "astral-sh/uv-pre-commit"],
groupName: "uv-version",
// Create dedicated branch to update dependencies in tests.
matchFileNames: ["tests/**"],
commitMessageTopic: "dependencies in tests",
semanticCommitType: "test",
semanticCommitScope: null,
additionalBranchPrefix: "tests-",
groupName: "all test dependencies",
groupSlug: "all-test-dependencies",
separateMajorMinor: false,
automerge: true,
},
{
matchPackageNames: ["astral-sh/ruff-pre-commit"],
customChangelogUrl: "https://github.com/astral-sh/ruff",
matchPackageNames: ["uv", "astral-sh/uv-pre-commit"],
groupName: "uv-version",
},
],
}
2 changes: 1 addition & 1 deletion .github/workflows/validate-renovate-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
pull_request:
paths:
- ".github/workflows/validate-renovate-config.yml"
- "renovate.json5"
- ".github/renovate.json5"
push:
branches: [main]

Expand Down

0 comments on commit fb79dcb

Please sign in to comment.