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
18 changes: 16 additions & 2 deletions renovate_presets/charm.json5
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
"timezone": "Etc/UTC",
// Exclude Renovate PRs from auto-generated release notes
"labels": ["not bug or enhancement"],
"enabledManagers": ["poetry", "github-actions", "regex"],
"enabledManagers": ["poetry", "pep621", "github-actions", "regex"],

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.

The manager is pep621, lockFileMaintenance from line 11 will make renovate updated the uv.lock as well.

"packageRules": [
// Later rules override earlier rules
{
"matchManagers": ["poetry"],
"matchManagers": ["poetry", "pep621"],
"rangeStrategy": "bump",
"groupName": "Python dependencies"
},
Expand All @@ -29,6 +29,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.

],
"groupName": "Python dependencies"
},
// Disable Python updates
// (Python version should be updated when Ubuntu version is updated)
{
Expand All @@ -38,6 +46,12 @@
"matchDepNames": ["python"],
"enabled": false
},
{
"matchManagers": ["pep621"],
"matchDepNames": ["python"],
"matchDatasources": ["python-version"],

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.

I think we can merge with the poetry rule above based on datasource.

"enabled": false
},
{
"matchManagers": ["github-actions"],
"groupName": "GitHub actions"
Expand Down