-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Configure Renovate #4887
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
Configure Renovate #4887
Changes from all commits
af2d2e4
9b9c5b1
7279e67
060cd51
15a3e7c
891b7c9
6e671d8
dea7cfc
35da332
d1b89d8
0d874e5
f204c05
d1b68d7
5f68f6d
b03e630
104ddf3
aed0fdd
a84ecf6
6beacfb
82e7905
5811faf
477fe06
05d8029
980a8d1
be3486a
44fe7fa
add58af
d699a74
ab41d8c
254b6c9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,81 @@ | ||
| { | ||
| "$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
| "extends": [ // See what config:best-practices does: https://docs.renovatebot.com/presets-config/#configbest-practices | ||
| "config:best-practices", | ||
| // Opt-in to updating the pre-commit-config.yaml file too: | ||
| ":enablePreCommit", | ||
| ":prConcurrentLimitNone" // No limits on the number of open PRs. | ||
| ], | ||
|
|
||
| // Add pull request labels: | ||
| "labels": ["dependencies"], | ||
|
|
||
| // Bump even patch versions: | ||
| "bumpVersion": "patch", | ||
|
|
||
| // Let Renovate decide how to update. See docs: https://docs.renovatebot.com/configuration-options/#rangestrategy | ||
| "rangeStrategy": "auto", | ||
|
|
||
| // Update the lock files: | ||
| "lockFileMaintenance": { | ||
| "enabled": true, | ||
| "schedule": ["* * * * 1,4"] // Run sometime on Monday and Thursday | ||
| }, | ||
|
|
||
| // Bump the versions even in other files: | ||
| "bumpVersions": [ | ||
| { | ||
| "name": "Update dependency versions in README.rst", | ||
| "filePatterns": ["README.rst"], | ||
| "matchStrings": [ | ||
| "cryptography>=(?<version>\\d+\\.\\d+\\.\\d+)", | ||
| "aiolimiter~=(?<version>\\d+\\.\\d+\\.\\d+)", | ||
| "tornado~=(?<version>\\d+\\.\\d+)", | ||
| "cachetools>=(?<version>\\d+\\.\\d+\\.\\d+)", // Lower bound only | ||
| "APScheduler>=(?<version>\\d+\\.\\d+\\.\\d+)" // Lower bound only | ||
| ], | ||
| "bumpType": "minor" | ||
| } | ||
| ], | ||
|
|
||
| // Group package updates together: | ||
| "packageRules": [ | ||
| // Linting dependencies in pyproject.toml in sync with the pre-commit-config hooks: | ||
| // Unfortunately it seems we need to do this for every dependency group (https://github.com/python-telegram-bot/python-telegram-bot/pull/4887#discussion_r2272025832): | ||
| { | ||
| "description": "Group Ruff updates together", | ||
| "matchPackageNames": ["ruff", "astral-sh/ruff-pre-commit"], | ||
| "groupName": "Ruff" | ||
| }, | ||
| { | ||
| "description": "Group mypy updates together", | ||
| "matchPackageNames": ["mypy", "pre-commit/mirrors-mypy"], | ||
| "groupName": "Mypy" | ||
| }, | ||
| { | ||
| "description": "Group pylint updates together", | ||
| "matchPackageNames": ["pylint", "PyCQA/pylint"], | ||
| "groupName": "Pylint" | ||
| }, | ||
| { | ||
| "description": "Group chango updates together", | ||
| "matchPackageNames": ["chango", "Bibo-Joshi/chango"], | ||
| "groupName": "Chango" | ||
| }, | ||
| // Automerge PR's for minor/patch/pin/digest (except major) updates: | ||
| { | ||
| "matchUpdateTypes": ["minor", "patch", "pin", "digest"], | ||
| "automerge": true | ||
| } | ||
| ], | ||
|
|
||
| // Increase the number of PR's Renovate can create in a hour. Default is 2. | ||
| "prHourlyLimit": 5, | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Using presets is convenient, and there's nothing wrong with creating all PRs at once.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On the fence with this one. I don't really want to spam everything at once because our CI has flaky tests which fail when many PRs are opened at once. If Renovate has an option of spacing out PRs by a set amount of time, say 30 minutes, that would be better imo. |
||
|
|
||
| // Temporarily disabled: | ||
| "ignoreDeps": ["pytest-asyncio"], | ||
|
|
||
| // schedule to allow PR's from Renovate: | ||
| "schedule": ["* * * * 0,6"] // Every weekend | ||
|
|
||
| } | ||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| internal = "Use Renovate to Keep Dependencies Up-To-Date" | ||
| [[pull_requests]] | ||
| uid = "4887" | ||
| author_uid = "renovate[bot]" | ||
| closes_threads = [] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There’s no need to explicitly specify when using the default value.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this case I do want to explicitly mention it so anybody reading it is aware of our setting.