From d41003f6f109fe63954452a659fe1be71b7f102c Mon Sep 17 00:00:00 2001 From: "Felt, Nicholas" Date: Tue, 23 Jul 2024 07:36:56 -0700 Subject: [PATCH] refactor: Updating linting control comments --- src/tm_devices/drivers/pi/pi_device.py | 4 ++-- .../pi/source_measure_units/smu24xx/smu24xx_standard.py | 2 +- .../drivers/pi/source_measure_units/smu60xx/smu6xxx.py | 2 +- src/tm_devices/drivers/pi/tsp_device.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/tm_devices/drivers/pi/pi_device.py b/src/tm_devices/drivers/pi/pi_device.py index e2c12c45..2b83e5cb 100644 --- a/src/tm_devices/drivers/pi/pi_device.py +++ b/src/tm_devices/drivers/pi/pi_device.py @@ -576,7 +576,7 @@ def query_raw_binary(self, query: str, verbose: bool = True) -> bytes: return response - def query_response( # noqa: PLR0913 + def query_response( self, query: str, value: Union[str, float], @@ -657,7 +657,7 @@ def reset_visa_timeout(self) -> None: """Reset the VISA timeout to the default value.""" self.visa_timeout = self._default_visa_timeout - def set_and_check( + def set_and_check( # noqa: PLR0913 self, command: str, value: Union[str, float], diff --git a/src/tm_devices/drivers/pi/source_measure_units/smu24xx/smu24xx_standard.py b/src/tm_devices/drivers/pi/source_measure_units/smu24xx/smu24xx_standard.py index d77f56a6..d1019416 100644 --- a/src/tm_devices/drivers/pi/source_measure_units/smu24xx/smu24xx_standard.py +++ b/src/tm_devices/drivers/pi/source_measure_units/smu24xx/smu24xx_standard.py @@ -77,7 +77,7 @@ def run_script(self, script_name: str) -> None: # noqa: ARG002 msg = f"This functionality is not available on the {self.__class__.__name__} instrument." raise NotImplementedError(msg) - def set_and_check( + def set_and_check( # noqa: PLR0913 self, command: str, value: Union[str, float], diff --git a/src/tm_devices/drivers/pi/source_measure_units/smu60xx/smu6xxx.py b/src/tm_devices/drivers/pi/source_measure_units/smu60xx/smu6xxx.py index 4929be3d..8d46e7ad 100644 --- a/src/tm_devices/drivers/pi/source_measure_units/smu60xx/smu6xxx.py +++ b/src/tm_devices/drivers/pi/source_measure_units/smu60xx/smu6xxx.py @@ -79,7 +79,7 @@ def run_script(self, script_name: str) -> None: # noqa: ARG002 msg = f"This functionality is not available on the {self.__class__.__name__} instrument." raise NotImplementedError(msg) - def set_and_check( + def set_and_check( # noqa: PLR0913 self, command: str, value: Union[str, float], diff --git a/src/tm_devices/drivers/pi/tsp_device.py b/src/tm_devices/drivers/pi/tsp_device.py index a0896744..3a686898 100644 --- a/src/tm_devices/drivers/pi/tsp_device.py +++ b/src/tm_devices/drivers/pi/tsp_device.py @@ -193,7 +193,7 @@ def run_script(self, script_name: str) -> None: """ self.write(f"{script_name}()") - def set_and_check( + def set_and_check( # noqa: PLR0913 self, command: str, value: Union[str, float],