Skip to content

Commit d41dd11

Browse files
MNT: add Renovate config to master so it actually takes effect (#1039)
Renovate (Mend hosted app) reads repository configuration only from the default branch, which is `master`. The config introduced in #972 was merged into `develop`, so it never took effect: Renovate ran with bare defaults, raised PRs against `master` instead of `develop`, did not group updates, and naively bumped every pinned line in the autogenerated `docs/requirements.txt`. This adds the configuration on `master` and: - keeps the intended settings (baseBranches: develop, grouping, labels, dependency dashboard); - enables the `pip-compile` manager scoped to `docs/requirements.txt`, which is autogenerated from `docs/requirements.in`, so the lock file is regenerated properly instead of patched line by line; - disables the `pip_requirements` manager for that one file to avoid duplicate PRs (it still manages the hand-written requirements files). Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent cb15a39 commit d41dd11

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

.github/renovate.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"extends": [
4+
"config:recommended"
5+
],
6+
"baseBranches": [
7+
"develop"
8+
],
9+
"labels": [
10+
"dependencies"
11+
],
12+
"dependencyDashboard": true,
13+
"automerge": false,
14+
"pip-compile": {
15+
"managerFilePatterns": [
16+
"/^docs/requirements\\.txt$/"
17+
]
18+
},
19+
"packageRules": [
20+
{
21+
"matchPackagePatterns": [
22+
"*"
23+
],
24+
"matchUpdateTypes": [
25+
"minor",
26+
"patch"
27+
],
28+
"groupName": "all non-major dependencies",
29+
"groupSlug": "all-non-major"
30+
},
31+
{
32+
"description": "docs/requirements.txt is autogenerated by pip-compile from docs/requirements.in. Let the pip-compile manager regenerate the lock file, and stop the pip_requirements manager from editing the autogenerated file line by line.",
33+
"matchManagers": [
34+
"pip_requirements"
35+
],
36+
"matchFileNames": [
37+
"docs/requirements.txt"
38+
],
39+
"enabled": false
40+
}
41+
]
42+
}

0 commit comments

Comments
 (0)