diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2328d0e3..31251983 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -28,3 +28,7 @@ repos: rev: v0.39.0 hooks: - id: markdownlint +- repo: https://github.com/renovatebot/pre-commit-hooks + rev: 37.353.0 + hooks: + - id: renovate-config-validator diff --git a/renovate.json b/renovate.json new file mode 100644 index 00000000..3b36b6be --- /dev/null +++ b/renovate.json @@ -0,0 +1,75 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": [ + "config:base", + ":disableDependencyDashboard", + ":automergeDigest", + ":automergePatch", + ":automergeMinor", + ":rebaseStalePrs", + ":semanticCommits", + ":semanticCommitScope(deps)", + "helpers:pinGitHubActionDigests", + ":enablePreCommit" + ], + "automergeType": "pr", + "rebaseWhen": "behind-base-branch", + "packageRules": [ + { + "groupName": "github actions", + "matchManagers": ["github-actions"], + "matchUpdateTypes": ["major", "minor", "patch", "pin", "digest"], + "automerge": true, + "schedule": ["at any time"], + "additionalBranchPrefix": "auto-" + }, + { + "groupName": "operator pip deps", + "matchManagers": ["pip_requirements"], + "matchUpdateTypes": ["minor", "patch", "pin", "digest"], + "schedule": ["at any time"], + "prPriority": 5, + "additionalBranchPrefix": "auto-" + }, + { + "groupName": "operator pip deps", + "matchManagers": ["pip_requirements"], + "matchUpdateTypes": ["major"], + "schedule": ["at any time"], + "prPriority": 5 + }, + { + "groupName": "testing pip deps", + "matchManagers": ["pip_requirements"], + "matchUpdateTypes": ["major", "minor", "patch", "pin", "digest"], + "automerge": true, + "schedule": ["at any time"], + "prPriority": 4, + "additionalBranchPrefix": "auto-" + }, + { + "groupName": "testing deps", + "matchFiles": ["tox.ini"], + "matchUpdateTypes": ["major", "minor", "patch", "pin", "digest"], + "automerge": true, + "schedule": ["on monday"], + "additionalBranchPrefix": "auto-" + }, + { + "groupName": "renovate packages", + "matchSourceUrlPrefixes": ["https://github.com/renovatebot/"], + "matchUpdateTypes": ["major", "minor", "patch", "pin", "digest"], + "automerge": true, + "schedule": ["at any time"], + "additionalBranchPrefix": "auto-" + }, + { + "groupName": "pre-commit hooks", + "matchManagers": ["pre-commit"], + "matchUpdateTypes": ["major", "minor", "patch", "pin", "digest"], + "automerge": true, + "schedule": ["at any time"], + "additionalBranchPrefix": "auto-" + } + ] +} diff --git a/tox.ini b/tox.ini index 84563903..528244ec 100644 --- a/tox.ini +++ b/tox.ini @@ -30,7 +30,6 @@ deps = types-PyYAML commands = pre-commit install - pre-commit autoupdate [testenv:fmt] description = Apply coding style standards to code