Skip to content

Commit

Permalink
tools: Make renovate cleaner. (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
lengau authored Jan 25, 2023
1 parent 552c132 commit f676cdc
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@
extends: ["config:base"],
labels: ["dependencies"], // For convenient searching in GitHub
pip_requirements: {
fileMatch: ["pyproject.toml", "tox.ini"]
fileMatch: ["^tox.ini$"]
},
packageRules: [
pip_setup: {
fileMatch: ["^pyproject.toml$", "(^|/)setup\\.py$"]
},
packageRules: [
{
// Automerge patches, pin changes and digest changes.
// Also groups these changes together.
Expand All @@ -23,6 +26,7 @@
},
{
// GitHub Actions are higher priority to update than most dependencies.
groupName: "GitHub Actions",
matchManagers: ["github-actions"],
prPriority: 1
},
Expand Down Expand Up @@ -52,8 +56,9 @@
{
// tox.ini can get updates too if we specify for each package.
fileMatch: ["tox.ini"],
depTypeTemplate: "devDependencies",
matchStrings: [
"# renovate: datasource=(?<datasource>\\S+)\n\\s+(?<depName>.*?)[=><]=?(?<currentValue>.*?)\\n",
"# renovate: datasource=(?<datasource>\S+)\n\s+(?<depName>.*?)(\[[\w]*\])*[=><]=?(?<currentValue>.*?)\n"
]
}
],
Expand Down

0 comments on commit f676cdc

Please sign in to comment.