Skip to content

Commit a572412

Browse files
authored
Bump the required group across 1 directory with 18 updates (#32)
2 parents 7f60548 + 0802098 commit a572412

File tree

6 files changed

+56
-32
lines changed

6 files changed

+56
-32
lines changed

.github/workflows/ci.yaml

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ jobs:
4141
runs-on: ${{ matrix.os }}
4242

4343
steps:
44+
- name: Setup Git
45+
uses: frequenz-floss/[email protected]
46+
4447
- name: Print environment (debug)
4548
run: env
4649

@@ -119,6 +122,9 @@ jobs:
119122
runs-on: ${{ matrix.os }}
120123

121124
steps:
125+
- name: Setup Git
126+
uses: frequenz-floss/[email protected]
127+
122128
- name: Fetch sources
123129
uses: actions/checkout@v4
124130
with:
@@ -219,6 +225,9 @@ jobs:
219225
name: Build distribution packages
220226
runs-on: ubuntu-20.04
221227
steps:
228+
- name: Setup Git
229+
uses: frequenz-floss/[email protected]
230+
222231
- name: Fetch sources
223232
uses: actions/checkout@v4
224233
with:
@@ -251,17 +260,24 @@ jobs:
251260
needs: ["build"]
252261
runs-on: ubuntu-20.04
253262
steps:
263+
- name: Setup Git
264+
uses: frequenz-floss/[email protected]
265+
254266
- name: Fetch sources
255267
uses: actions/checkout@v4
268+
256269
- name: Download package
257270
uses: actions/download-artifact@v4
258271
with:
259272
name: dist-packages
260273
path: dist
274+
261275
- name: Set up QEMU
262276
uses: docker/setup-qemu-action@v3
277+
263278
- name: Set up docker-buildx
264279
uses: docker/setup-buildx-action@v3
280+
265281
- name: Test Installation
266282
uses: docker/build-push-action@v6
267283
with:
@@ -276,14 +292,14 @@ jobs:
276292
if: github.event_name != 'push'
277293
runs-on: ubuntu-20.04
278294
steps:
295+
- name: Setup Git
296+
uses: frequenz-floss/[email protected]
297+
279298
- name: Fetch sources
280299
uses: actions/checkout@v4
281300
with:
282301
submodules: true
283302

284-
- name: Setup Git user and e-mail
285-
uses: frequenz-floss/setup-git-user@v2
286-
287303
- name: Set up Python
288304
uses: actions/setup-python@v5
289305
with:
@@ -318,14 +334,14 @@ jobs:
318334
permissions:
319335
contents: write
320336
steps:
337+
- name: Setup Git
338+
uses: frequenz-floss/[email protected]
339+
321340
- name: Fetch sources
322341
uses: actions/checkout@v4
323342
with:
324343
submodules: true
325344

326-
- name: Setup Git user and e-mail
327-
uses: frequenz-floss/setup-git-user@v2
328-
329345
- name: Set up Python
330346
uses: actions/setup-python@v5
331347
with:

pyproject.toml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
requires = [
66
"setuptools == 68.1.0",
77
"setuptools_scm[toml] == 7.1.0",
8-
"frequenz-repo-config[lib] == 0.9.2",
8+
"frequenz-repo-config[lib] == 0.10.0",
99
]
1010
build-backend = "setuptools.build_meta"
1111

@@ -46,45 +46,45 @@ email = "[email protected]"
4646

4747
[project.optional-dependencies]
4848
dev-flake8 = [
49-
"flake8 == 7.1.0",
49+
"flake8 == 7.1.1",
5050
"flake8-docstrings == 1.7.0",
5151
"flake8-pyproject == 1.2.3", # For reading the flake8 config from pyproject.toml
52-
"pydoclint == 0.5.3",
52+
"pydoclint == 0.5.9",
5353
"pydocstyle == 6.3.0",
5454
]
55-
dev-formatting = ["black == 24.4.2", "isort == 5.13.2"]
55+
dev-formatting = ["black == 24.8.0", "isort == 5.13.2"]
5656
dev-mkdocs = [
57-
"Markdown == 3.6.0",
58-
"black == 24.4.2",
59-
"mike == 2.1.2",
57+
"Markdown == 3.7",
58+
"black == 24.8.0",
59+
"mike == 2.1.3",
6060
"mkdocs-gen-files == 0.5.0",
6161
"mkdocs-literate-nav == 0.6.1",
62-
"mkdocs-macros-plugin == 1.0.5",
63-
"mkdocs-material == 9.5.27",
64-
"mkdocstrings[python] == 0.25.1",
65-
"mkdocstrings-python == 1.10.5",
66-
"frequenz-repo-config[lib] == 0.9.2",
62+
"mkdocs-macros-plugin == 1.2.0",
63+
"mkdocs-material == 9.5.39",
64+
"mkdocstrings[python] == 0.26.1",
65+
"mkdocstrings-python == 1.11.1",
66+
"frequenz-repo-config[lib] == 0.10.0",
6767
]
6868
dev-mypy = [
69-
"mypy == 1.10.1",
70-
"types-Markdown == 3.6.0.20240316",
69+
"mypy == 1.11.2",
70+
"types-Markdown == 3.7.0.20240822",
7171
# For checking the noxfile, docs/ script, and tests
7272
"frequenz-core[dev-mkdocs,dev-noxfile,dev-pytest]",
7373
]
74-
dev-noxfile = ["nox == 2024.4.15", "frequenz-repo-config[lib] == 0.9.2"]
74+
dev-noxfile = ["nox == 2024.4.15", "frequenz-repo-config[lib] == 0.10.0"]
7575
dev-pylint = [
7676
# dev-pytest already defines a dependency to pylint because of the examples
7777
# For checking the noxfile, docs/ script, and tests
7878
"frequenz-core[dev-mkdocs,dev-noxfile,dev-pytest]",
7979
]
8080
dev-pytest = [
81-
"pytest == 8.2.2",
82-
"pylint == 3.2.5", # We need this to check for the examples
83-
"frequenz-repo-config[extra-lint-examples] == 0.9.2",
81+
"pytest == 8.3.3",
82+
"pylint == 3.3.1", # We need this to check for the examples
83+
"frequenz-repo-config[extra-lint-examples] == 0.10.0",
8484
"pytest-mock == 3.14.0",
85-
"pytest-asyncio == 0.23.7",
86-
"async-solipsism == 0.6",
87-
"hypothesis == 6.104.2",
85+
"pytest-asyncio == 0.24.0",
86+
"async-solipsism == 0.7",
87+
"hypothesis == 6.112.2",
8888
]
8989
dev = [
9090
"frequenz-core[dev-mkdocs,dev-flake8,dev-formatting,dev-mkdocs,dev-mypy,dev-noxfile,dev-pylint,dev-pytest]",

src/frequenz/core/asyncio/_service.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,8 +327,10 @@ def cancel(self, msg: str | None = None) -> None:
327327
self._main_task.cancel(msg)
328328
self._task_group.cancel(msg)
329329

330+
# We need to use noqa here because pydoclint can't figure out that rest is actually
331+
# an instance of BaseExceptionGroup.
330332
@override
331-
async def stop(self, msg: str | None = None) -> None:
333+
async def stop(self, msg: str | None = None) -> None: # noqa: DOC503
332334
"""Stop this service.
333335
334336
This method cancels all running tasks spawned by this service and waits for them

src/frequenz/core/asyncio/_task_group.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,9 @@ def cancel(self, msg: str | None = None) -> None:
227227
for task in self._running:
228228
task.cancel(msg)
229229

230-
async def stop(self, msg: str | None = None) -> None:
230+
# We need to use noqa here because pydoclint can't figure out that rest is actually
231+
# an instance of BaseExceptionGroup.
232+
async def stop(self, msg: str | None = None) -> None: # noqa: DOC503
231233
"""Stop this task group.
232234
233235
This method cancels all running tasks spawned by this group and waits for them

src/frequenz/core/typing.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,9 @@ def decorator(inner_cls: TypeT) -> TypeT:
137137
class _NoInitConstructibleMeta(type):
138138
"""A metaclass that disables the __init__ constructor."""
139139

140-
def __new__(
140+
# We need to use noqa here because pydoclint can't figure out that
141+
# _get_no_init_constructible_error() returns a TypeError.
142+
def __new__( # noqa: DOC503
141143
mcs,
142144
name: str,
143145
bases: tuple[type, ...],
@@ -173,7 +175,9 @@ def __init__(
173175
super().__init__(name, bases, namespace)
174176
cls._no_init_constructible_error = kwargs.get("no_init_constructible_error")
175177

176-
def __call__(cls, *args: Any, **kwargs: Any) -> NoReturn:
178+
# We need to use noqa here because pydoclint can't figure out that
179+
# _get_no_init_constructible_error() returns a TypeError.
180+
def __call__(cls, *args: Any, **kwargs: Any) -> NoReturn: # noqa: DOC503
177181
"""Raise an error when the __init__ constructor is called.
178182
179183
Args:

tests/math/test_interval.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def test_invalid_range(start: LessThanComparable, end: LessThanComparable) -> No
6464
),
6565
],
6666
)
67-
def test_contains( # pylint: disable=too-many-arguments
67+
def test_contains( # pylint: disable=too-many-arguments,too-many-positional-arguments
6868
start: LessThanComparable,
6969
end: LessThanComparable,
7070
within: LessThanComparable,

0 commit comments

Comments
 (0)