Skip to content

Commit ca599d8

Browse files
authored
Merge pull request #9 from BrainCOGS/tabedzki/ci/dependabot-uv-cooldown
ci: configure Dependabot with 7-day cooldowns
2 parents 038d897 + 9470ad2 commit ca599d8

1 file changed

Lines changed: 146 additions & 0 deletions

File tree

‎.github/dependabot.yml‎

Lines changed: 146 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,146 @@
1+
# Dependabot configuration.
2+
#
3+
# Template: BrainCOGS/U19-pipeline-python .github/dependabot.yml (keep in sync
4+
# when changing policy).
5+
#
6+
# Every ecosystem waits 7 days (`cooldown`) before proposing a new release, to
7+
# skip the window when a compromised release is most likely still published.
8+
# uv itself applies the same quarantine via `exclude-newer = "7 days"` in
9+
# pyproject.toml.
10+
#
11+
# No `pip` entry: element_array_ephys/export/nwb/requirements.txt is not read
12+
# by the packaging; dependencies live in pyproject.toml / uv.lock.
13+
14+
version: 2
15+
16+
updates:
17+
#
18+
# GitHub Actions (.github/workflows/)
19+
#
20+
- package-ecosystem: "github-actions"
21+
directory: "/"
22+
cooldown:
23+
default-days: 7
24+
25+
schedule:
26+
interval: "monthly"
27+
day: "monday"
28+
time: "06:00"
29+
timezone: "UTC"
30+
31+
open-pull-requests-limit: 5
32+
33+
labels:
34+
- "dependencies"
35+
- "github-actions"
36+
37+
commit-message:
38+
prefix: "ci"
39+
40+
rebase-strategy: "auto"
41+
42+
# A group without `applies-to` only batches scheduled version updates.
43+
# Security updates are grouped separately, so declare both or the
44+
# security fixes keep arriving as one PR per package.
45+
groups:
46+
github-actions:
47+
applies-to: "version-updates"
48+
patterns:
49+
- "*"
50+
github-actions-security:
51+
applies-to: "security-updates"
52+
patterns:
53+
- "*"
54+
55+
#
56+
# Docker (devcontainer image and the docs build image)
57+
#
58+
- package-ecosystem: "docker"
59+
directories:
60+
- "/.devcontainer"
61+
- "/docs/.docker"
62+
cooldown:
63+
default-days: 7
64+
65+
schedule:
66+
interval: "monthly"
67+
day: "tuesday"
68+
time: "06:00"
69+
timezone: "UTC"
70+
71+
open-pull-requests-limit: 5
72+
73+
labels:
74+
- "dependencies"
75+
- "docker"
76+
77+
commit-message:
78+
prefix: "docker"
79+
80+
rebase-strategy: "auto"
81+
82+
# See the github-actions entry above: version and security updates are
83+
# grouped independently, so both need a group.
84+
groups:
85+
docker:
86+
applies-to: "version-updates"
87+
patterns:
88+
- "*"
89+
docker-security:
90+
applies-to: "security-updates"
91+
patterns:
92+
- "*"
93+
94+
#
95+
# Python / uv (pyproject.toml + uv.lock)
96+
#
97+
- package-ecosystem: "uv"
98+
directory: "/"
99+
cooldown:
100+
default-days: 7
101+
102+
schedule:
103+
interval: "monthly"
104+
day: "wednesday"
105+
time: "06:00"
106+
timezone: "UTC"
107+
108+
open-pull-requests-limit: 5
109+
110+
labels:
111+
- "dependencies"
112+
113+
commit-message:
114+
prefix: "deps"
115+
116+
rebase-strategy: "auto"
117+
118+
# See the github-actions entry above.
119+
groups:
120+
python:
121+
applies-to: "version-updates"
122+
patterns:
123+
- "*"
124+
python-security:
125+
applies-to: "security-updates"
126+
patterns:
127+
- "*"
128+
129+
ignore:
130+
# datajoint 2.x removed dj.schema and ignores the dj_local_conf.json that
131+
# the BrainCOGS repos ship, so `import element_array_ephys` fails on it.
132+
# pyproject.toml constrains the dev environment to datajoint<2 and
133+
# U19-pipeline-python pins datajoint<2.0.0 for the same reason. Remove
134+
# once the datajoint 2.x migration lands.
135+
- dependency-name: "datajoint"
136+
versions:
137+
- ">=2.0"
138+
# datajoint <2.0 imports pkg_resources (plugin.py, pulled in by
139+
# connection.py on every `import datajoint`). setuptools 83.0.0 removed
140+
# pkg_resources outright and there is no installable replacement, so any
141+
# bump to >=82 makes `import datajoint` fail with ModuleNotFoundError.
142+
# Verified in tech_calendar_streamlit#110. Remove together with the
143+
# datajoint ignore above.
144+
- dependency-name: "setuptools"
145+
versions:
146+
- ">=82"

0 commit comments

Comments
 (0)