Skip to content

Commit 56dd8d5

Browse files
authored
Reduce number of Dependabot PRs (#247)
This changes 2 things: - Enable grouped updates. Instead of a separate PR for every package, Dependabot can combine them into a single "dependency update" PR. - Limit to direct dependencies. We can use the allow key to restrict it to only the packages you explicitly list in the `requirements.in`.
1 parent 3c28a84 commit 56dd8d5

2 files changed

Lines changed: 14 additions & 3 deletions

File tree

.github/dependabot.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,19 @@ updates:
2525
- "area/health"
2626

2727
- package-ecosystem: "pip"
28-
directories:
29-
- "**/*"
28+
directory: "/src/py"
29+
allow:
30+
- dependency-name: stim
31+
- dependency-name: pytest
32+
- dependency-name: sinter
33+
- dependency-name: pybind11-stubgen
3034
schedule:
3135
interval: "monthly"
3236
versioning-strategy: "increase-if-necessary"
37+
groups:
38+
python-dependencies:
39+
patterns:
40+
- "*"
3341
labels:
3442
- "area/dependencies"
3543
- "area/python"

src/py/requirements.in

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1+
# Note: if you add or subtract from the list below, also update the "allow"
2+
# list in ../../.github/dependabot.yaml.
3+
14
stim
25
pytest
36
sinter
4-
pybind11-stubgen
7+
pybind11-stubgen

0 commit comments

Comments
 (0)