From 69eac522248db8a9d694bfecfc7b79e6a8c9cb50 Mon Sep 17 00:00:00 2001 From: Andy Sigler Date: Thu, 15 Aug 2024 13:55:38 -0400 Subject: [PATCH] more linting fixes --- hardware-testing/hardware_testing/liquid_sense/__main__.py | 1 - hardware-testing/hardware_testing/liquid_sense/execute.py | 1 + .../protocols/liquid_sense/lld_test_empty_wells.py | 2 +- .../hardware_testing/scripts/visualize_pipette_function.py | 4 ++-- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hardware-testing/hardware_testing/liquid_sense/__main__.py b/hardware-testing/hardware_testing/liquid_sense/__main__.py index c3f1d2ec74c..084f99eadee 100644 --- a/hardware-testing/hardware_testing/liquid_sense/__main__.py +++ b/hardware-testing/hardware_testing/liquid_sense/__main__.py @@ -27,7 +27,6 @@ get_testing_data_directory, ) from opentrons_hardware.hardware_control.motion_planning import move_utils -from opentrons_hardware.hardware_control import tool_sensors from opentrons.protocol_api import InstrumentContext, ProtocolContext from opentrons.protocol_engine.types import LabwareOffset diff --git a/hardware-testing/hardware_testing/liquid_sense/execute.py b/hardware-testing/hardware_testing/liquid_sense/execute.py index 5f1993cb0bc..15e94325a91 100644 --- a/hardware-testing/hardware_testing/liquid_sense/execute.py +++ b/hardware-testing/hardware_testing/liquid_sense/execute.py @@ -180,6 +180,7 @@ def _load_scale( return recorder +# flake8: noqa: C901 def run( tip: int, run_args: RunArgs, diff --git a/hardware-testing/hardware_testing/protocols/liquid_sense/lld_test_empty_wells.py b/hardware-testing/hardware_testing/protocols/liquid_sense/lld_test_empty_wells.py index 4b5c99a88ba..3adfd8e3208 100644 --- a/hardware-testing/hardware_testing/protocols/liquid_sense/lld_test_empty_wells.py +++ b/hardware-testing/hardware_testing/protocols/liquid_sense/lld_test_empty_wells.py @@ -160,7 +160,7 @@ def _write_line_to_google_sheet( ) -> None: try: google_sheet.batch_update_cells(line, "A", row, sheet_id) - except: + except Exception: ctx.comment("Google sheet not updated.") diff --git a/hardware-testing/hardware_testing/scripts/visualize_pipette_function.py b/hardware-testing/hardware_testing/scripts/visualize_pipette_function.py index 62229aabb5a..4dc4395a227 100644 --- a/hardware-testing/hardware_testing/scripts/visualize_pipette_function.py +++ b/hardware-testing/hardware_testing/scripts/visualize_pipette_function.py @@ -92,8 +92,8 @@ def _plot_table(model: str, table: List[List[float]]) -> None: plt.suptitle(model) plt.plot(*table) ax = plt.gca() - ax.set_xlim([min(table[0]), max(table[0])]) - ax.set_ylim([min(table[1]), max(table[1])]) + ax.set_xlim([min(table[0]), max(table[0])]) # type: ignore[arg-type] + ax.set_ylim([min(table[1]), max(table[1])]) # type: ignore[arg-type] plt.show()