Skip to content

Commit d99bdfc

Browse files
authored
dependabot: Group grpc/protobuf updates together (#257)
2 parents 0340dc7 + 7468ce7 commit d99bdfc

File tree

2 files changed

+20
-9
lines changed

2 files changed

+20
-9
lines changed

.github/dependabot.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,13 @@ updates:
3636
- "async-solipsism"
3737
- "frequenz-api-common"
3838
- "frequenz-repo-config*"
39+
- "grpcio"
40+
- "grpcio-tools"
3941
- "markdown-callouts"
4042
- "mkdocs-gen-files"
4143
- "mkdocs-literate-nav"
4244
- "mkdocstrings*"
45+
- "protobuf"
4346
- "pydoclint"
4447
- "pytest-asyncio"
4548
# We group repo-config updates as it uses optional dependencies that are
@@ -51,6 +54,14 @@ updates:
5154
mkdocstrings:
5255
patterns:
5356
- "mkdocstrings*"
57+
# We group grpcio and protobuf updates together, as they need special
58+
# handling on the pyproject.toml file because of the protobuf/grpcio
59+
# build/runtime cross-version guarantees
60+
grpc:
61+
patterns:
62+
- "grpcio"
63+
- "grpcio-tools"
64+
- "protobuf"
5465

5566
- package-ecosystem: "github-actions"
5667
directory: "/"
@@ -86,11 +97,3 @@ updates:
8697
labels:
8798
- "part:tooling"
8899
- "type:tech-debt"
89-
groups:
90-
compatible:
91-
update-types:
92-
- "minor"
93-
- "patch"
94-
artifacts:
95-
patterns:
96-
- "actions/*-artifact"

pyproject.toml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,15 @@ disable = [
166166
]
167167

168168
[tool.pytest.ini_options]
169-
addopts = "-W=all -Werror -Wdefault::DeprecationWarning -Wdefault::PendingDeprecationWarning -vv"
169+
addopts = "-vv"
170+
filterwarnings = [
171+
"error",
172+
"once::DeprecationWarning",
173+
"once::PendingDeprecationWarning",
174+
# We use a raw string (single quote) to avoid the need to escape special
175+
# chars as this is a regex
176+
'ignore:Protobuf gencode version .*exactly one major version older.*:UserWarning',
177+
]
170178
testpaths = ["pytests"]
171179

172180
[tool.mypy]

0 commit comments

Comments
 (0)