From 2679ce48361fcb9f5097d49f227bb823703e3a32 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Wed, 8 Oct 2025 18:06:10 -1000 Subject: [PATCH] uart grouping --- script/analyze_component_buses.py | 4 ++-- script/test_build_components.py | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/script/analyze_component_buses.py b/script/analyze_component_buses.py index 2f77d9b223..3e7fd1c562 100644 --- a/script/analyze_component_buses.py +++ b/script/analyze_component_buses.py @@ -91,7 +91,7 @@ def uses_local_file_references(component_dir: Path) -> bool: try: content = common_yaml.read_text() - except Exception: + except Exception: # pylint: disable=broad-exception-caught return False # Pattern to match $component_dir or ${component_dir} references @@ -113,7 +113,7 @@ def extract_common_buses(yaml_file: Path) -> set[str]: try: content = yaml_file.read_text() - except Exception: + except Exception: # pylint: disable=broad-exception-caught return set() buses = set() diff --git a/script/test_build_components.py b/script/test_build_components.py index ee8ed193b5..746ca3497c 100755 --- a/script/test_build_components.py +++ b/script/test_build_components.py @@ -24,6 +24,7 @@ import sys # Add esphome to path sys.path.insert(0, str(Path(__file__).parent.parent)) +# pylint: disable=wrong-import-position from script.analyze_component_buses import ( analyze_all_components, create_grouping_signature, @@ -235,7 +236,7 @@ def run_grouped_test( tests_dir=tests_dir, output_file=merged_config_file, ) - except Exception as e: + except Exception as e: # pylint: disable=broad-exception-caught print(f"Error merging configs for {components}: {e}") if not continue_on_fail: raise