Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Renovate configuration to the repository to handle dependencies updates #179

Merged
merged 3 commits into from
Nov 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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",
},
],
}