From d6b2a5be4cb89d0fe394879d32081274f4ad063e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 3 Nov 2025 11:24:03 +0000 Subject: [PATCH 1/2] Bump pylint from 3.3.9 to 4.0.2 Bumps [pylint](https://github.com/pylint-dev/pylint) from 3.3.9 to 4.0.2. - [Release notes](https://github.com/pylint-dev/pylint/releases) - [Commits](https://github.com/pylint-dev/pylint/compare/v3.3.9...v4.0.2) --- updated-dependencies: - dependency-name: pylint dependency-version: 4.0.2 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 502310a..e4e98da 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -92,7 +92,7 @@ dev-mypy = [ ] dev-noxfile = ["nox == 2025.10.16", "frequenz-repo-config[lib] == 0.13.6"] dev-pylint = [ - "pylint == 3.3.9", + "pylint == 4.0.2", # For checking the noxfile, docs/ script, and tests "frequenz-client-dispatch[cli,dev-mkdocs,dev-noxfile,dev-pytest]", "frequenz-api-dispatch == 1.0.0", From 2b72e1a32dc0f001baf1d7dd0a89a984361b47d3 Mon Sep 17 00:00:00 2001 From: "Mathias L. Baumann" Date: Wed, 5 Nov 2025 11:30:15 +0100 Subject: [PATCH 2/2] Disable pylint too-many-branches check for update method The update() method has nested match statements that result in 21 branches, exceeding pylint 4.0's default limit of 12. This is intentional for handling various field update cases. Signed-off-by: Mathias L. Baumann --- src/frequenz/client/dispatch/_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frequenz/client/dispatch/_client.py b/src/frequenz/client/dispatch/_client.py index 8d6d4c1..b09ba35 100644 --- a/src/frequenz/client/dispatch/_client.py +++ b/src/frequenz/client/dispatch/_client.py @@ -367,7 +367,7 @@ async def create( # pylint: disable=too-many-positional-arguments return Dispatch.from_protobuf(response.dispatch) - async def update( + async def update( # pylint: disable=too-many-branches self, *, microgrid_id: MicrogridId,