Skip to content

Commit

Permalink
chore: add Renovate configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
wood-push-melon committed May 13, 2024
1 parent 524329d commit c2158a7
Show file tree
Hide file tree
Showing 4 changed files with 87 additions and 2 deletions.
10 changes: 10 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,17 @@ repos:
args: ["--config-file", "pyproject.toml"]
additional_dependencies:
- types-PyYAML
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v3.2.0
hooks:
- id: conventional-pre-commit
stages: [commit-msg]
args: [--strict]
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.39.0
hooks:
- id: markdownlint
- repo: https://github.com/renovatebot/pre-commit-hooks
rev: 37.353.0
hooks:
- id: renovate-config-validator
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

[![Continuous Integration Status](https://github.com/canonical/glauth-k8s-operator/actions/workflows/on_push.yaml/badge.svg?branch=main)](https://github.com/canonical/glauth-k8s-operator/actions?query=branch%3Amain)
[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit)](https://github.com/pre-commit/pre-commit)
[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-%23FE5196.svg)](https://conventionalcommits.org)

This repository holds the Juju Kubernetes charmed operator
for [GLAuth](https://github.com/glauth/glauth), an open-sourced LDAP server.
Expand Down
75 changes: 75 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -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-"
}
]
}
3 changes: 1 addition & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ deps =
mypy
types-PyYAML
commands =
pre-commit install
pre-commit autoupdate
pre-commit install -t commit-msg

[testenv:fmt]
description = Apply coding style standards to code
Expand Down

0 comments on commit c2158a7

Please sign in to comment.