diff --git a/renovate_presets/charm.json5 b/renovate_presets/charm.json5 index dfd77c8..dcb6fd6 100644 --- a/renovate_presets/charm.json5 +++ b/renovate_presets/charm.json5 @@ -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"], "packageRules": [ // Later rules override earlier rules { - "matchManagers": ["poetry"], + "matchManagers": ["poetry", "pep621"], "rangeStrategy": "bump", "groupName": "Python dependencies" }, @@ -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'" + ], + "groupName": "Python dependencies" + }, // Disable Python updates // (Python version should be updated when Ubuntu version is updated) { @@ -38,6 +46,12 @@ "matchDepNames": ["python"], "enabled": false }, + { + "matchManagers": ["pep621"], + "matchDepNames": ["python"], + "matchDatasources": ["python-version"], + "enabled": false + }, { "matchManagers": ["github-actions"], "groupName": "GitHub actions"