Skip to content

Commit

Permalink
Merge pull request #71 from qutech/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
[pre-commit.ci] pre-commit autoupdate
  • Loading branch information
THuckemann authored Feb 7, 2024
2 parents c269d75 + 1c93e7e commit 5d04c10
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
6 changes: 2 additions & 4 deletions src/qumada/instrument/buffers/buffer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down
6 changes: 2 additions & 4 deletions src/qumada/instrument/buffers/dummy_dmm_buffer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
3 changes: 1 addition & 2 deletions src/qumada/instrument/buffers/mfli_buffer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
3 changes: 1 addition & 2 deletions src/qumada/instrument/buffers/sr830_buffer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 5d04c10

Please sign in to comment.