From bce90f41055612dd5b846552be9976ad8cc6ec99 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 29 Jan 2024 20:35:51 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/psf/black: 23.12.1 → 24.1.1](https://github.com/psf/black/compare/23.12.1...24.1.1) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 050c395c..68a44742 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -25,7 +25,7 @@ repos: - id: isort args: ["--profile", "black"] - repo: https://github.com/psf/black - rev: 23.12.1 + rev: 24.1.1 hooks: - id: black args: ["--line-length", "120"] From 28ced34bc4f3b6375c9dda764ff53a0ea06f2df1 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 29 Jan 2024 20:36:01 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/qumada/instrument/buffers/buffer.py | 6 ++---- src/qumada/instrument/buffers/dummy_dmm_buffer.py | 6 ++---- src/qumada/instrument/buffers/mfli_buffer.py | 3 +-- src/qumada/instrument/buffers/sr830_buffer.py | 3 +-- 4 files changed, 6 insertions(+), 12 deletions(-) diff --git a/src/qumada/instrument/buffers/buffer.py b/src/qumada/instrument/buffers/buffer.py index 325965eb..2b3fc4c9 100644 --- a/src/qumada/instrument/buffers/buffer.py +++ b/src/qumada/instrument/buffers/buffer.py @@ -251,8 +251,7 @@ def trigger(self) -> Parameter | None: @trigger.setter # type: ignore @abstractmethod - def trigger(self, parameter: Parameter | None) -> None: - ... + def trigger(self, parameter: Parameter | None) -> None: ... @property @abstractmethod @@ -265,8 +264,7 @@ def num_points(self) -> int | None: @num_points.setter @abstractmethod - def num_points(self) -> None: - ... + def num_points(self) -> None: ... @abstractmethod def force_trigger(self) -> None: diff --git a/src/qumada/instrument/buffers/dummy_dmm_buffer.py b/src/qumada/instrument/buffers/dummy_dmm_buffer.py index 953c9597..f137e9e0 100644 --- a/src/qumada/instrument/buffers/dummy_dmm_buffer.py +++ b/src/qumada/instrument/buffers/dummy_dmm_buffer.py @@ -142,11 +142,9 @@ def is_subscribed(self, parameter: Parameter) -> bool: def start(self) -> None: self._device.start() - def stop(self) -> None: - ... + def stop(self) -> None: ... - def is_ready(self) -> bool: - ... + def is_ready(self) -> bool: ... def is_finished(self) -> bool: return self._device.is_finished() diff --git a/src/qumada/instrument/buffers/mfli_buffer.py b/src/qumada/instrument/buffers/mfli_buffer.py index 4420725b..f1b1d5bc 100644 --- a/src/qumada/instrument/buffers/mfli_buffer.py +++ b/src/qumada/instrument/buffers/mfli_buffer.py @@ -241,8 +241,7 @@ def start(self) -> None: def stop(self) -> None: self._daq.raw_module.finish() - def is_ready(self) -> bool: - ... + def is_ready(self) -> bool: ... def is_finished(self) -> bool: return self._daq.raw_module.finished() diff --git a/src/qumada/instrument/buffers/sr830_buffer.py b/src/qumada/instrument/buffers/sr830_buffer.py index f4735678..9f914474 100644 --- a/src/qumada/instrument/buffers/sr830_buffer.py +++ b/src/qumada/instrument/buffers/sr830_buffer.py @@ -183,8 +183,7 @@ def start(self) -> None: def stop(self) -> None: self._device.buffer_pause() - def is_ready(self) -> bool: - ... + def is_ready(self) -> bool: ... def is_finished(self) -> bool: if self._device.buffer_npts() >= self.num_points: