Skip to content

Commit f2b11ac

Browse files
committed
Add .github/dependabot.yml for automated dependency updates
1 parent 8a8f151 commit f2b11ac

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

.github/dependabot.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Dependabot configuration file
2+
# Enables automated dependency updates for pip (individual PRs) and GitHub Actions (grouped PR).
3+
# Full documentation: https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
4+
5+
version: 2
6+
7+
updates:
8+
# Pip dependencies from pyproject.toml ([project].dependencies and [dependency-groups])
9+
- package-ecosystem: pip
10+
directory: "/"
11+
target-branch: "main"
12+
schedule:
13+
interval: "weekly"
14+
# day: "monday" # Optional: Restrict to specific weekday
15+
open-pull-requests-limit: 5 # Limit number of open PRs
16+
rebase-strategy: "auto" # Options: auto, safe, noop
17+
labels:
18+
- "dependencies"
19+
versioning-strategy: "increase" # lockfile-only, increase, increase-if-necessary
20+
# Useful: Ignore outdated/unwanted packages
21+
# ignore:
22+
# - dependency-name: "legacy-package"
23+
# Useful: Periodically update lockfile even without dep changes (requires lockfile)
24+
# lockfile-maintenance:
25+
# enabled: true
26+
27+
# GitHub Actions in .github/workflows/*.yml
28+
- package-ecosystem: "github-actions"
29+
directory: "/" # Root; scans .github/**/workflow yml files
30+
target-branch: "main"
31+
schedule:
32+
interval: "monthly"
33+
# day: "monday"
34+
open-pull-requests-limit: 5
35+
rebase-strategy: "auto"
36+
labels:
37+
- "CI"
38+
groups:
39+
gha-updates:
40+
patterns:
41+
- "*" # Groups ALL GitHub Actions updates into single PR
42+
43+
# Additional notes:
44+
# - Pip updates: Individual PRs per package (no group).
45+
# - Reviews: Uses .github/CODEOWNERS automatically.
46+
# - Automerge: Enable via branch protection rules or 'automerge: true' (experimental).

0 commit comments

Comments
 (0)