diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8d878e7..c7f13d3 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: v6.0.0 hooks: - id: trailing-whitespace - id: no-commit-to-branch args: [-b, main] - - repo: https://github.com/psf/black - rev: 23.10.1 + - repo: https://github.com/psf/black-pre-commit-mirror + rev: 25.9.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.18.2 hooks: - id: mypy exclude: ^tests/.* 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