From b4b9b4d92254c22b01ac2a89d27e690a4f067bb8 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 20 Nov 2026 18:50:52 +0000 Subject: [PATCH 1/2] build(deps-dev): Bump the minor group across 1 directory with 10 updates Bumps the minor group with 10 updates in the / directory: | Package | From | To | | --- | --- | --- | | [flake8](https://github.com/pycqa/flake8) | `7.4.1` | `7.5.0` | | [mkdocs-material](https://github.com/squidfunk/mkdocs-material) | `9.7.7` | `9.8.1` | | [griffe](https://github.com/mkdocstrings/griffe) | `2.3.0` | `2.4.1` | | [types-markdown](https://github.com/python/typeshed) | `3.10.2.20260712` | `3.11.3.20261108` | | [nox](https://github.com/wntrblm/nox) | `2026.8.17` | `2026.10.20` | | [pylint](https://github.com/pylint-dev/pylint) | `4.0.9` | `4.1.4` | | [hypothesis](https://github.com/HypothesisWorks/hypothesis) | `6.168.3` | `6.170.15` | | [pytest](https://github.com/pytest-dev/pytest) | `9.1.1` | `9.2.0` | | [pytest-mock](https://github.com/pytest-dev/pytest-mock) | `3.16.0` | `3.17.0` | | [setuptools](https://github.com/pypa/setuptools) | `84.1.0` | `84.2.1` | Updates `flake8` from 7.4.1 to 7.5.0 - [Commits](https://github.com/pycqa/flake8/compare/7.4.1...7.5.0) Updates `mkdocs-material` from 9.7.7 to 9.8.1 - [Release notes](https://github.com/squidfunk/mkdocs-material/releases) - [Changelog](https://github.com/squidfunk/mkdocs-material/blob/master/CHANGELOG) - [Commits](https://github.com/squidfunk/mkdocs-material/compare/9.7.7...9.8.1) Updates `griffe` from 2.3.0 to 2.4.1 - [Release notes](https://github.com/mkdocstrings/griffe/releases) - [Changelog](https://github.com/mkdocstrings/griffe/blob/main/CHANGELOG.md) - [Commits](https://github.com/mkdocstrings/griffe/compare/2.3.0...2.4.1) Updates `types-markdown` from 3.10.2.20260712 to 3.11.3.20261108 - [Commits](https://github.com/python/typeshed/commits) Updates `nox` from 2026.8.17 to 2026.10.20 - [Release notes](https://github.com/wntrblm/nox/releases) - [Changelog](https://github.com/wntrblm/nox/blob/main/CHANGELOG.md) - [Commits](https://github.com/wntrblm/nox/compare/2026.08.17...2026.10.20) Updates `pylint` from 4.0.9 to 4.1.4 - [Release notes](https://github.com/pylint-dev/pylint/releases) - [Commits](https://github.com/pylint-dev/pylint/compare/v4.0.9...v4.1.4) Updates `hypothesis` from 6.168.3 to 6.170.15 - [Release notes](https://github.com/HypothesisWorks/hypothesis/releases) - [Commits](https://github.com/HypothesisWorks/hypothesis/compare/v6.168.3...v6.170.15) Updates `pytest` from 9.1.1 to 9.2.0 - [Release notes](https://github.com/pytest-dev/pytest/releases) - [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst) - [Commits](https://github.com/pytest-dev/pytest/compare/9.1.1...9.2.0) Updates `pytest-mock` from 3.16.0 to 3.17.0 - [Release notes](https://github.com/pytest-dev/pytest-mock/releases) - [Changelog](https://github.com/pytest-dev/pytest-mock/blob/main/CHANGELOG.rst) - [Commits](https://github.com/pytest-dev/pytest-mock/compare/v3.16.0...v3.17.0) Updates `setuptools` from 84.1.0 to 84.2.1 - [Release notes](https://github.com/pypa/setuptools/releases) - [Changelog](https://github.com/pypa/setuptools/blob/main/NEWS.rst) - [Commits](https://github.com/pypa/setuptools/compare/v84.1.0...v84.2.1) --- updated-dependencies: - dependency-name: flake8 dependency-version: 7.5.0 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: minor - dependency-name: griffe dependency-version: 2.4.1 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: minor - dependency-name: hypothesis dependency-version: 6.170.15 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: minor - dependency-name: mkdocs-material dependency-version: 9.8.1 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: minor - dependency-name: nox dependency-version: 2026.10.20 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: minor - dependency-name: pylint dependency-version: 4.1.4 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: minor - dependency-name: pytest dependency-version: 9.2.0 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: minor - dependency-name: pytest-mock dependency-version: 3.17.0 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: minor - dependency-name: setuptools dependency-version: 84.2.1 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: minor - dependency-name: types-markdown dependency-version: 3.11.3.20261108 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: minor ... Signed-off-by: dependabot[bot] --- pyproject.toml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index cf9c81b1..6ef650f3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ [build-system] requires = [ - "setuptools == 84.1.0", + "setuptools == 84.2.1", "setuptools_scm[toml] == 10.3.4", "frequenz-repo-config[lib] == 0.19.0", ] @@ -38,7 +38,7 @@ email = "floss@frequenz.com" [project.optional-dependencies] dev-flake8 = [ - "flake8 == 7.4.1", + "flake8 == 7.5.0", "flake8-datetimez == 26.8.1", "flake8-docstrings == 1.7.0", "flake8-pyproject == 1.2.4", # For reading the flake8 config from pyproject.toml @@ -57,31 +57,31 @@ dev-mkdocs = [ "mkdocs-include-markdown-plugin == 7.3.0", "mkdocs-literate-nav == 0.6.3", "mkdocs-macros-plugin == 1.5.0", - "mkdocs-material == 9.7.7", + "mkdocs-material == 9.8.1", "mkdocstrings[python] == 1.0.8", "mkdocstrings-python == 2.0.10", "pymdownx-superfence-filter-lines == 1.0.0", - "griffe==2.3.0", + "griffe==2.4.1", ] dev-mypy = [ # For checking the noxfile, docs/ script, and tests "frequenz-channels[dev-mkdocs,dev-noxfile,dev-pytest]", "mypy == 2.4.1", - "types-Markdown == 3.10.2.20260712", + "types-Markdown == 3.11.3.20261108", ] -dev-noxfile = ["nox == 2026.8.17", "frequenz-repo-config[lib] == 0.19.0"] +dev-noxfile = ["nox == 2026.10.20", "frequenz-repo-config[lib] == 0.19.0"] dev-pylint = [ # For checking the noxfile, docs/ script, and tests "frequenz-channels[dev-mkdocs,dev-noxfile,dev-pytest]", - "pylint == 4.0.9", + "pylint == 4.1.4", ] dev-pytest = [ "async-solipsism == 0.10", "frequenz-repo-config[extra-lint-examples] == 0.19.0", - "hypothesis == 6.168.3", - "pytest == 9.1.1", + "hypothesis == 6.170.15", + "pytest == 9.2.0", "pytest-asyncio == 1.5.0", - "pytest-mock == 3.16.0", + "pytest-mock == 3.17.0", ] dev = [ "frequenz-channels[dev-mkdocs,dev-flake8,dev-formatting,dev-mkdocs,dev-mypy,dev-noxfile,dev-pylint,dev-pytest]", From 9053e2b11861ce9814da98d92f16ec6fc0a6e16c Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Fri, 20 Nov 2026 18:57:15 +0000 Subject: [PATCH 2/2] Test that `close()` is abstract without a subclass pylint 4.1 reports W0223 (`abstract-method`) for the receiver subclass the test defines without `close()`, which it leaves out on purpose to check that such a subclass can't be instantiated. Check that `close()` is in `Receiver.__abstractmethods__` instead. `ABCMeta` sets it, and it is what makes instantiating a subclass that doesn't implement `close()` raise a `TypeError`, so testing that machinery again isn't needed. This avoids disabling the warning. Signed-off-by: Leandro Lucarella --- tests/test_receiver.py | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/tests/test_receiver.py b/tests/test_receiver.py index 42b869cc..9e187d80 100644 --- a/tests/test_receiver.py +++ b/tests/test_receiver.py @@ -3,24 +3,9 @@ """Tests for the Receiver base class.""" -import pytest - from frequenz.channels import Receiver -def test_receiver_without_close_cannot_be_instantiated() -> None: +def test_close_is_abstract() -> None: """Test that a receiver subclass has to implement `close()`.""" - - class NoCloseReceiver(Receiver[int]): - """A receiver that doesn't implement `close()`.""" - - async def ready(self) -> bool: - """Return that the receiver is not ready.""" - return False - - def consume(self) -> int: - """Return a message.""" - return 0 - - with pytest.raises(TypeError, match=r"abstract method.*close"): - NoCloseReceiver() # type: ignore[abstract] # pylint: disable=abstract-class-instantiated + assert "close" in Receiver.__abstractmethods__