From 58a4f5105b3a7c0ed5b674a85864eac7c6e60614 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 3 Mar 2025 21:23:59 +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/pre-commit/pre-commit-hooks: v4.5.0 → v5.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.5.0...v5.0.0) - [github.com/psf/black: 23.10.1 → 25.1.0](https://github.com/psf/black/compare/23.10.1...25.1.0) - [github.com/pre-commit/mirrors-mypy: v1.6.1 → v1.15.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.6.1...v1.15.0) --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8d878e7..25cb8e2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,14 +2,14 @@ ci: autoupdate_schedule: 'monthly' repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.5.0 + rev: v5.0.0 hooks: - id: trailing-whitespace - id: no-commit-to-branch args: [-b, main] - repo: https://github.com/psf/black - rev: 23.10.1 + rev: 25.1.0 hooks: - id: black name: black @@ -18,7 +18,7 @@ repos: types: [python] - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.6.1 + rev: v1.15.0 hooks: - id: mypy exclude: ^tests/.* From d1325a5cba7167dba441e64e3c95c982f0863cec Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 3 Mar 2025 21:24:50 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- yaqc/yaqc/__init__.py | 1 - yaqc/yaqc/__version__.py | 1 - yaqc/yaqc/_properties.py | 1 - yaqd-core/yaqd_core/__version__.py | 1 - yaqd-core/yaqd_core/_has_mapping.py | 6 +++--- yaqd-core/yaqd_core/_has_turret.py | 3 +-- yaqd-fakes/yaqd_fakes/__init__.py | 4 ++-- yaqd-fakes/yaqd_fakes/__version__.py | 1 - yaqd-fakes/yaqd_fakes/_signal_generators.py | 1 - 9 files changed, 6 insertions(+), 13 deletions(-) diff --git a/yaqc/yaqc/__init__.py b/yaqc/yaqc/__init__.py index 9b50549..7448eff 100644 --- a/yaqc/yaqc/__init__.py +++ b/yaqc/yaqc/__init__.py @@ -1,6 +1,5 @@ """Generic yaq client.""" - from .__version__ import * from ._client import * from . import _avro_numpy diff --git a/yaqc/yaqc/__version__.py b/yaqc/yaqc/__version__.py index 78706b1..9cb996b 100644 --- a/yaqc/yaqc/__version__.py +++ b/yaqc/yaqc/__version__.py @@ -1,6 +1,5 @@ """Define version.""" - import pathlib import subprocess diff --git a/yaqc/yaqc/_properties.py b/yaqc/yaqc/_properties.py index d612028..86aafaa 100644 --- a/yaqc/yaqc/_properties.py +++ b/yaqc/yaqc/_properties.py @@ -1,6 +1,5 @@ """Class representing single property, see YEP-111.""" - Getter = object() diff --git a/yaqd-core/yaqd_core/__version__.py b/yaqd-core/yaqd_core/__version__.py index f6c2624..96eb770 100644 --- a/yaqd-core/yaqd_core/__version__.py +++ b/yaqd-core/yaqd_core/__version__.py @@ -1,6 +1,5 @@ """Define version.""" - import pathlib import subprocess diff --git a/yaqd-core/yaqd_core/_has_mapping.py b/yaqd-core/yaqd_core/_has_mapping.py index ee0e09d..1eeb693 100644 --- a/yaqd-core/yaqd_core/_has_mapping.py +++ b/yaqd-core/yaqd_core/_has_mapping.py @@ -14,9 +14,9 @@ def __init__( self, name: str, config: Dict[str, Any], config_filepath: pathlib.Path ): super().__init__(name, config, config_filepath) - self.__mappings: Dict[ - str, Any - ] = dict() # don't interact directly, use property + self.__mappings: Dict[str, Any] = ( + dict() + ) # don't interact directly, use property self._mapping_id: int = 0 self._channel_mappings: Dict[str, List[str]] = dict() self._mapping_units: Dict[str, str] = dict() diff --git a/yaqd-core/yaqd_core/_has_turret.py b/yaqd-core/yaqd_core/_has_turret.py index 1408a7d..f8d5760 100644 --- a/yaqd-core/yaqd_core/_has_turret.py +++ b/yaqd-core/yaqd_core/_has_turret.py @@ -12,8 +12,7 @@ def set_turret(self, identifier: str): self._busy = True @abstractmethod - def get_turret_options(self): - ... + def get_turret_options(self): ... def get_turret(self): return self._state["turret"] diff --git a/yaqd-fakes/yaqd_fakes/__init__.py b/yaqd-fakes/yaqd_fakes/__init__.py index d658342..ec2df3b 100644 --- a/yaqd-fakes/yaqd_fakes/__init__.py +++ b/yaqd-fakes/yaqd_fakes/__init__.py @@ -1,3 +1,3 @@ -""" fake yaq daemons, for testing purposes -""" +"""fake yaq daemons, for testing purposes""" + from .__version__ import * diff --git a/yaqd-fakes/yaqd_fakes/__version__.py b/yaqd-fakes/yaqd_fakes/__version__.py index 2431192..cb4fadc 100644 --- a/yaqd-fakes/yaqd_fakes/__version__.py +++ b/yaqd-fakes/yaqd_fakes/__version__.py @@ -1,6 +1,5 @@ """Define version.""" - import pathlib import subprocess diff --git a/yaqd-fakes/yaqd_fakes/_signal_generators.py b/yaqd-fakes/yaqd_fakes/_signal_generators.py index 6acc641..ca874fb 100644 --- a/yaqd-fakes/yaqd_fakes/_signal_generators.py +++ b/yaqd-fakes/yaqd_fakes/_signal_generators.py @@ -1,6 +1,5 @@ """Generators for fake sensor signal generation.""" - import random