Skip to content

Commit 35c6e5f

Browse files
authored
Apply new repo-config 0.11 templates (#115)
2 parents 97e1aef + b47afb4 commit 35c6e5f

File tree

4 files changed

+13
-7
lines changed

4 files changed

+13
-7
lines changed

.github/containers/test-installation/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# This Dockerfile is used to test the installation of the python package in
44
# multiple platforms in the CI. It is not used to build the package itself.
55

6-
FROM --platform=${TARGETPLATFORM} python:3.11-slim
6+
FROM python:3.11-slim
77

88
RUN apt-get update -y && \
99
apt-get install --no-install-recommends -y \

.github/dependabot.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,11 @@ updates:
3939
labels:
4040
- "part:tooling"
4141
- "type:tech-debt"
42+
groups:
43+
compatible:
44+
update-types:
45+
- "minor"
46+
- "patch"
47+
artifacts:
48+
patterns:
49+
- "actions/*-artifact"

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,8 @@ disable = [
155155
"unsubscriptable-object",
156156
# Checked by mypy
157157
"no-member",
158+
"possibly-used-before-assignment",
159+
"no-name-in-module",
158160
# Checked by flake8
159161
"redefined-outer-name",
160162
"unused-import",
@@ -168,6 +170,7 @@ disable = [
168170
[tool.pytest.ini_options]
169171
testpaths = ["tests", "src"]
170172
asyncio_mode = "auto"
173+
asyncio_default_fixture_loop_scope = "function"
171174
required_plugins = ["pytest-asyncio", "pytest-mock"]
172175

173176
[tool.mypy]

src/frequenz/client/conftest.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,4 @@
1010
from frequenz.repo.config.pytest import examples
1111
from sybil import Sybil
1212

13-
sybil_arguments = examples.get_sybil_arguments()
14-
# Upstream includes "excludes" to work around a bug in Sybil.
15-
# This bug seems to be fixed in our version of Sybil, so we remove it.
16-
sybil_arguments.pop("excludes")
17-
18-
pytest_collect_file = Sybil(**sybil_arguments).pytest()
13+
pytest_collect_file = Sybil(**examples.get_sybil_arguments()).pytest()

0 commit comments

Comments
 (0)