From 7f3973ea37d43396aa83bb484dc540646ddca71a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 12 Mar 2026 11:10:38 +0000 Subject: [PATCH 1/2] chore(deps-dev): bump pylint from 3.3.8 to 4.0.5 Bumps [pylint](https://github.com/pylint-dev/pylint) from 3.3.8 to 4.0.5. - [Release notes](https://github.com/pylint-dev/pylint/releases) - [Commits](https://github.com/pylint-dev/pylint/compare/v3.3.8...v4.0.5) --- updated-dependencies: - dependency-name: pylint dependency-version: 4.0.5 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 8a506df..4729bb7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -91,7 +91,7 @@ dev-pylint = [ ] dev-pytest = [ "pytest == 9.0.2", - "pylint == 3.3.8", # We need this to check for the examples + "pylint == 4.0.5", # We need this to check for the examples "frequenz-repo-config[extra-lint-examples] == 0.16.0", "pytest-mock == 3.15.1", "pytest-asyncio == 1.3.0", From 2a5210b956c3867af6e0be7b944ee6a9e2933faa Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Thu, 12 Mar 2026 12:27:33 +0100 Subject: [PATCH 2/2] Disable too-many-branches check for component proto When converting electrical components from protobuf, we have a big match statement to dispatch the different component categories to the right conversion function. It is fine in this case to have a lot of branching. The alternative would be to do a dict-based dispatch but we lose exhaustiveness checks, or we need to use a typed-dict, adding unnecessary complexity. Signed-off-by: Leandro Lucarella --- .../electrical_component/_electrical_component_proto.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/frequenz/client/assets/electrical_component/_electrical_component_proto.py b/src/frequenz/client/assets/electrical_component/_electrical_component_proto.py index 3c5f77d..4e2e916 100644 --- a/src/frequenz/client/assets/electrical_component/_electrical_component_proto.py +++ b/src/frequenz/client/assets/electrical_component/_electrical_component_proto.py @@ -172,6 +172,10 @@ def component_base_from_proto_with_issues( ) +# This function is just a big match statement to dispatch to the right component +# class based on the category and subcategory, so it's fine to have many branches +# here. +# pylint: disable-next=too-many-branches def electrical_component_from_proto_with_issues( message: electrical_components_pb2.ElectricalComponent, *,