Skip to content

Commit

Permalink
Add Renovate configuration to the repository to handle dependencies u…
Browse files Browse the repository at this point in the history
…pdates (#179)

* chore: add Renovate

* chore(pre-commit): hint Renovate on additional dependencies
  • Loading branch information
mkniewallner authored Nov 11, 2022
1 parent b907f77 commit 6367ad2
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ repos:
hooks:
- id: flake8
additional_dependencies:
- flake8-bugbear==22.9.23
- flake8-comprehensions==3.10.0
- flake8-simplify==0.19.3
- "flake8-bugbear==22.9.23" # renovate: pep440-python-dependency
- "flake8-comprehensions==3.10.0" # renovate: pep440-python-dependency
- "flake8-simplify==0.19.3" # renovate: pep440-python-dependency

- repo: https://github.com/pre-commit/pygrep-hooks
rev: "v1.9.0"
Expand Down
32 changes: 32 additions & 0 deletions renovate.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
$schema: "https://docs.renovatebot.com/renovate-schema.json",

// https://docs.renovatebot.com/configuration-options/#extends
extends: [
// https://docs.renovatebot.com/presets-config/#configbase
"config:base",
// https://docs.renovatebot.com/presets-default/#enableprecommit
":enablePreCommit",
// https://docs.renovatebot.com/presets-default/#maintainlockfilesweekly
":maintainLockFilesWeekly",
// https://docs.renovatebot.com/presets-default/#prhourlylimitnone
":prHourlyLimitNone",
// https://docs.renovatebot.com/presets-default/#rebasestaleprs
":rebaseStalePrs",
],

// https://docs.renovatebot.com/configuration-options/#labels
labels: ["dependencies"],

// https://docs.renovatebot.com/configuration-options/#regexmanagers
regexManagers: [
{
description: "Update PEP 440 Python dependencies",
fileMatch: ["^\\.pre-commit-config\\.yaml$"],
matchStrings: [
'"(?<depName>[\\w-]+)(?<currentValue>.+?)",?[[:blank:]]+#[[:blank:]]*renovate: pep440-python-dependency\\s',
],
datasourceTemplate: "pypi",
},
],
}

0 comments on commit 6367ad2

Please sign in to comment.