Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions renovate_presets/charm.json5
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
"extends": ["github>canonical/data-platform//renovate_presets/base.json5"],
// Exclude Renovate PRs from auto-generated release notes
"labels": ["not bug or enhancement"],
"enabledManagers": ["github-actions", "poetry", "custom.regex"],
"enabledManagers": ["github-actions", "poetry", "pep621", "custom.regex"],
"packageRules": [
// Later rules override earlier rules
{
"matchDatasources": ["pypi"],
"minimumReleaseAge": "1 day"
},
{
"matchManagers": ["poetry"],
"matchManagers": ["poetry", "pep621"],
"rangeStrategy": "bump",
"groupName": "Python dependencies"
},
Expand All @@ -21,6 +21,14 @@
"rangeStrategy": "in-range-only",
"groupName": "Python dependencies"
},
{
"matchManagers": ["pep621"],
"rangeStrategy": "in-range-only",
"matchJsonata": [
"depType = 'dependency-groups' and managerData.depGroup = 'charm-libs'"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Question. Will this mean that only the charm-libs dependency group gets updated? We're using more groups. Unclear to me if specific charms can extend or expand this Renovate config.

],
"groupName": "Python dependencies"
},
// Disable Python updates
// (Python version should be updated when Ubuntu version is updated)
{
Expand Down