diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000000..029dcd27c6 --- /dev/null +++ b/renovate.json @@ -0,0 +1,52 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": ["config:recommended"], + "enabledManagers": ["custom.regex", "github-actions", "pep621"], + "includePaths": [ + "pyproject.toml", + "uv.lock", + "scripts/split_tox_gh_actions/templates/test_group.jinja", + "scripts/split_tox_gh_actions/templates/test_orchestrator.jinja", + ".github/workflows/test.yml", + ".github/workflows/test-integrations-*.yml" + ], + "lockFileMaintenance": { + "enabled": true + }, + "packageRules": [ + { + "description": "Group package updates.", + "matchManagers": ["pep621"], + "groupName": "Packages", + "groupSlug": "packages", + "separateMajorMinor": false, + "separateMinorPatch": false, + "separateMultipleMajor": false + }, + { + "description": "Group GitHub Actions updates.", + "matchManagers": ["custom.regex", "github-actions"], + "matchDatasources": ["github-tags"], + "groupName": "GitHub Actions", + "groupSlug": "github-actions", + "separateMajorMinor": false, + "separateMinorPatch": false, + "separateMultipleMajor": false + } + ], + "customManagers": [ + { + "customType": "regex", + "description": "Update GitHub Actions in test_group.jinja", + "managerFilePatterns": [ + "/^scripts\\/split_tox_gh_actions\\/templates\\/(test_group|test_orchestrator)\\.jinja$/" + ], + "matchStrings": [ + "(?\\s+(?:-\\s+)?uses:\\s+)(?[A-Za-z0-9_.-]+\\/[A-Za-z0-9_.-]+(?:\\/[A-Za-z0-9_.-]+)*)@(?[a-f0-9]{40})\\s+#\\s+(?v?\\d+(?:\\.\\d+){0,2})" + ], + "datasourceTemplate": "github-tags", + "versioningTemplate": "semver-coerced", + "autoReplaceStringTemplate": "{{{indent}}}{{{depName}}}@{{{newDigest}}} # {{{newValue}}}" + } + ] +}