From 73301dbeac16a5286c84a17284dfa1647a74b896 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 24 Jul 2025 12:02:39 +0000 Subject: [PATCH 1/3] Bump the minor group across 1 directory with 4 updates Bumps the minor group with 4 updates in the / directory: [flake8](https://github.com/pycqa/flake8), [mypy](https://github.com/python/mypy), [pytest](https://github.com/pytest-dev/pytest) and [hypothesis](https://github.com/HypothesisWorks/hypothesis). Updates `flake8` from 7.2.0 to 7.3.0 - [Commits](https://github.com/pycqa/flake8/compare/7.2.0...7.3.0) Updates `mypy` from 1.16.1 to 1.17.0 - [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md) - [Commits](https://github.com/python/mypy/compare/v1.16.1...v1.17.0) Updates `pytest` from 8.3.5 to 8.4.1 - [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/8.3.5...8.4.1) Updates `hypothesis` from 6.132.0 to 6.136.3 - [Release notes](https://github.com/HypothesisWorks/hypothesis/releases) - [Commits](https://github.com/HypothesisWorks/hypothesis/compare/hypothesis-python-6.132.0...hypothesis-python-6.136.3) --- updated-dependencies: - dependency-name: flake8 dependency-version: 7.3.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: minor - dependency-name: mypy dependency-version: 1.17.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: minor - dependency-name: pytest dependency-version: 8.4.1 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: minor - dependency-name: hypothesis dependency-version: 6.136.3 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: minor ... Signed-off-by: dependabot[bot] --- pyproject.toml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index d540519..43790f6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -39,7 +39,7 @@ email = "floss@frequenz.com" [project.optional-dependencies] dev-flake8 = [ - "flake8 == 7.2.0", + "flake8 == 7.3.0", "flake8-docstrings == 1.7.0", "flake8-pyproject == 1.2.3", # For reading the flake8 config from pyproject.toml "pydoclint == 0.6.6", @@ -61,7 +61,7 @@ dev-mkdocs = [ "frequenz-client-base", ] dev-mypy = [ - "mypy == 1.16.1", + "mypy == 1.17.0", "types-Markdown == 3.8.0.20250415", "types-protobuf == 6.30.2.20250516", "grpc-stubs == 1.53.0.6", # This dependency introduces breaking changes in patch releases @@ -75,12 +75,12 @@ dev-pylint = [ "frequenz-client-base[dev-mkdocs,dev-noxfile,dev-pytest]", ] dev-pytest = [ - "pytest == 8.3.5", + "pytest == 8.4.1", "frequenz-repo-config[extra-lint-examples] == 0.13.5", "pytest-mock == 3.14.1", "pytest-asyncio == 1.0.0", "async-solipsism == 0.7", - "hypothesis == 6.132.0", + "hypothesis == 6.136.3", "frequenz-client-base", ] dev = [ From 3ab3420fce00ad2d5d12ab82461d3dcbdb3ec43e Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 24 Jul 2025 12:15:36 +0000 Subject: [PATCH 2/3] Initial plan From 2e302933b4f4d0a7b1993b4ef1fbb17fb81489e2 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 24 Jul 2025 12:24:03 +0000 Subject: [PATCH 3/3] Fix pytest warning by removing empty match parameter from pytest.raises Co-authored-by: llucax <1031485+llucax@users.noreply.github.com> --- tests/test_client.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/tests/test_client.py b/tests/test_client.py index a4aceb8..e3a771b 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -28,13 +28,7 @@ def _assert_is_disconnected(client: BaseApiClient[StubT]) -> None: """Assert that the client is disconnected.""" assert not client.is_connected - with pytest.raises(ClientNotConnected, match=r"") as exc_info: - _ = client.channel - exc = exc_info.value - assert exc.server_url == _DEFAULT_SERVER_URL - assert exc.operation == "channel" - - with pytest.raises(ClientNotConnected, match=r"") as exc_info: + with pytest.raises(ClientNotConnected) as exc_info: _ = client.channel exc = exc_info.value assert exc.server_url == _DEFAULT_SERVER_URL