From ae9a890263e46f28ad41f0f731c45ca63dcd2087 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 18 Dec 2024 08:01:10 +0000 Subject: [PATCH] Migrate config .github/renovate.json5 --- .github/renovate.json5 | 105 +++++++++++++++++++++++++---------------- 1 file changed, 65 insertions(+), 40 deletions(-) diff --git a/.github/renovate.json5 b/.github/renovate.json5 index d2dbbf3..a2c417f 100644 --- a/.github/renovate.json5 +++ b/.github/renovate.json5 @@ -1,8 +1,12 @@ { - extends: ["config:base"], - timezone: "Europe/Zurich", - schedule: "after 5pm on the first day of the month", - labels: ["dependencies"], + extends: [ + 'config:recommended', + ], + timezone: 'Europe/Zurich', + schedule: 'after 5pm on the first day of the month', + labels: [ + 'dependencies', + ], separateMajorMinor: true, separateMinorPatch: true, prHourlyLimit: 0, @@ -10,73 +14,94 @@ lockFileMaintenance: { enabled: true, automerge: true, - schedule: "after 5pm on the first day of the month", + schedule: 'after 5pm on the first day of the month', + }, + baseBranches: [ + 'master', + ], + 'pre-commit': { + enabled: true, }, - baseBranches: ["master"], - "pre-commit": { enabled: true }, - regexManagers: [ - /** Do updates on pre-commit additional dependencies */ + customManagers: [ { - fileMatch: ["^\\.pre\\-commit\\-config\\.yaml$"], + customType: 'regex', + fileMatch: [ + '^\\.pre\\-commit\\-config\\.yaml$', + ], matchStrings: [ " +- '?(?[^' @=]+)(@|==)(?[^' @=]+)'? # (?.+)", ], }, ], packageRules: [ - /** Auto merge the dev dependency update */ { - matchDepTypes: ["devDependencies"], + matchDepTypes: [ + 'devDependencies', + ], automerge: true, }, - /** Group and auto merge the patch updates */ { - matchUpdateTypes: ["patch"], - groupName: "all patch versions", + matchUpdateTypes: [ + 'patch', + ], + groupName: 'all patch versions', automerge: true, }, - /** Group and auto merge the minor updates */ { - matchUpdateTypes: ["minor"], - groupName: "all minor versions", + matchUpdateTypes: [ + 'minor', + ], + groupName: 'all minor versions', automerge: true, }, - /** Group Poetry packages */ { - matchPackagePrefixes: ["poetry-"], - groupName: "Poetry", + groupName: 'Poetry', automerge: true, - matchDepNames: ["poetry", "pip"], + matchDepNames: [ + 'poetry', + 'pip', + ], + matchPackageNames: [ + 'poetry-{/,}**', + ], }, - /** Accept only the patch on stabilization branches */ { - matchBaseBranches: ["/^[0-9]+\\.[0-9]+$/"], + matchBaseBranches: [ + '/^[0-9]+\\.[0-9]+$/', + ], matchUpdateTypes: [ - "major", - "minor", - "pin", - "digest", - "lockFileMaintenance", - "rollback", - "bump", + 'major', + 'minor', + 'pin', + 'digest', + 'lockFileMaintenance', + 'rollback', + 'bump', ], enabled: false, }, - /** Support the 4 parts of shellcheck-py version with a v prefix */ { - versioning: "regex:^v(?\\d+)\\.(?\\d+)\\.(?\\d+)\\.(?\\d+)$", - matchDepNames: ["shellcheck-py/shellcheck-py"], + versioning: 'regex:^v(?\\d+)\\.(?\\d+)\\.(?\\d+)\\.(?\\d+)$', + matchDepNames: [ + 'shellcheck-py/shellcheck-py', + ], }, - /** Disable update of Python version in pyproject.toml */ { - matchFiles: ["pyproject.toml"], + matchFileNames: [ + 'pyproject.toml', + ], enabled: false, - matchDepNames: ["python"], + matchDepNames: [ + 'python', + ], }, - /** Group and auto merge the CI dependencies */ { - matchFileNames: [".github/**", ".pre-commit-config.yaml", "ci/**"], - groupName: "CI dependencies", + matchFileNames: [ + '.github/**', + '.pre-commit-config.yaml', + 'ci/**', + ], + groupName: 'CI dependencies', automerge: true, }, ],