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", 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, *,