diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index aeb163b..88652ed 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,7 +9,7 @@ repos: args: [-b, main] - repo: https://github.com/psf/black-pre-commit-mirror - rev: 25.11.0 + rev: 26.1.0 hooks: - id: black name: black @@ -18,7 +18,7 @@ repos: types: [python] - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.19.0 + rev: v1.19.1 hooks: - id: mypy exclude: ^tests/.* diff --git a/tests/abstract_method/test_abstract_method.py b/tests/abstract_method/test_abstract_method.py index f728313..02c3aeb 100644 --- a/tests/abstract_method/test_abstract_method.py +++ b/tests/abstract_method/test_abstract_method.py @@ -9,7 +9,6 @@ import yaqc from yaqd_core import testing - here = pathlib.Path(__file__).parent diff --git a/tests/connection/test_connection.py b/tests/connection/test_connection.py index 27edb72..c1c47e5 100644 --- a/tests/connection/test_connection.py +++ b/tests/connection/test_connection.py @@ -8,7 +8,6 @@ import yaqd_core from yaqd_core import testing - config = pathlib.Path(__file__).parent / "connection.toml" pyfile = config.with_suffix(".py") diff --git a/tests/continuous_hardware/test_continuous_hardware.py b/tests/continuous_hardware/test_continuous_hardware.py index ab67b2a..35727ef 100644 --- a/tests/continuous_hardware/test_continuous_hardware.py +++ b/tests/continuous_hardware/test_continuous_hardware.py @@ -10,7 +10,6 @@ import yaqd_core from yaqd_core import testing - config = pathlib.Path(__file__).parent / "config.toml" diff --git a/tests/discrete_hardware/test_discrete_hardware.py b/tests/discrete_hardware/test_discrete_hardware.py index 91b13d6..f6adc9b 100644 --- a/tests/discrete_hardware/test_discrete_hardware.py +++ b/tests/discrete_hardware/test_discrete_hardware.py @@ -10,7 +10,6 @@ import yaqd_core from yaqd_core import testing - config = pathlib.Path(__file__).parent / "config.toml" diff --git a/tests/fake_camera/test_fake_camera.py b/tests/fake_camera/test_fake_camera.py index e454f0a..7c7bc27 100644 --- a/tests/fake_camera/test_fake_camera.py +++ b/tests/fake_camera/test_fake_camera.py @@ -11,7 +11,6 @@ import yaqd_core from yaqd_core import testing - config = pathlib.Path(__file__).parent / "config.toml" diff --git a/tests/fake_furnace/test_fake_furnace.py b/tests/fake_furnace/test_fake_furnace.py index 4f55acf..01ab1cb 100644 --- a/tests/fake_furnace/test_fake_furnace.py +++ b/tests/fake_furnace/test_fake_furnace.py @@ -10,7 +10,6 @@ import yaqd_core from yaqd_core import testing - config = pathlib.Path(__file__).parent / "config.toml" diff --git a/tests/fake_has_transformed_position/test_fake_has_transformed_position.py b/tests/fake_has_transformed_position/test_fake_has_transformed_position.py index b8d058c..22f1da8 100644 --- a/tests/fake_has_transformed_position/test_fake_has_transformed_position.py +++ b/tests/fake_has_transformed_position/test_fake_has_transformed_position.py @@ -11,7 +11,6 @@ import yaqd_core from yaqd_core import testing - config = pathlib.Path(__file__).parent / "config.toml" diff --git a/tests/fake_has_turret/test_fake_has_turret.py b/tests/fake_has_turret/test_fake_has_turret.py index 3342e6b..994989d 100644 --- a/tests/fake_has_turret/test_fake_has_turret.py +++ b/tests/fake_has_turret/test_fake_has_turret.py @@ -10,7 +10,6 @@ import yaqd_core from yaqd_core import testing - config = pathlib.Path(__file__).parent / "config.toml" diff --git a/tests/fake_sensor/test_fake_sensor.py b/tests/fake_sensor/test_fake_sensor.py index 494d4ac..495f792 100644 --- a/tests/fake_sensor/test_fake_sensor.py +++ b/tests/fake_sensor/test_fake_sensor.py @@ -11,7 +11,6 @@ import yaqd_core from yaqd_core import testing - config = pathlib.Path(__file__).parent / "config.toml" diff --git a/tests/fake_spectrometer/test_fake_spectrometer.py b/tests/fake_spectrometer/test_fake_spectrometer.py index c346433..a9ea743 100644 --- a/tests/fake_spectrometer/test_fake_spectrometer.py +++ b/tests/fake_spectrometer/test_fake_spectrometer.py @@ -11,7 +11,6 @@ import yaqd_core from yaqd_core import testing - config = pathlib.Path(__file__).parent / "config.toml" diff --git a/tests/mro/test_mro.py b/tests/mro/test_mro.py index 2a92991..1016760 100644 --- a/tests/mro/test_mro.py +++ b/tests/mro/test_mro.py @@ -9,7 +9,6 @@ import yaqc from yaqd_core import testing - here = pathlib.Path(__file__).parent diff --git a/tests/ndarray/test_ndarray.py b/tests/ndarray/test_ndarray.py index 3e3ff88..6bcf2e5 100644 --- a/tests/ndarray/test_ndarray.py +++ b/tests/ndarray/test_ndarray.py @@ -8,7 +8,6 @@ import yaqc from yaqd_core import testing - pyfile = pathlib.Path(__file__).parent / "NdarrayTestDaemon.py" config = pyfile.with_suffix(".toml") diff --git a/tests/triggered_sensor/test_triggered_sensor.py b/tests/triggered_sensor/test_triggered_sensor.py index 65aa33d..d02eb1f 100644 --- a/tests/triggered_sensor/test_triggered_sensor.py +++ b/tests/triggered_sensor/test_triggered_sensor.py @@ -10,7 +10,6 @@ import yaqd_core from yaqd_core import testing - config = pathlib.Path(__file__).parent / "config.toml" diff --git a/yaqc/yaqc/__version__.py b/yaqc/yaqc/__version__.py index 9cb996b..06d3a85 100644 --- a/yaqc/yaqc/__version__.py +++ b/yaqc/yaqc/__version__.py @@ -3,7 +3,6 @@ import pathlib import subprocess - here = pathlib.Path(__file__).resolve().parent diff --git a/yaqc/yaqc/_socket.py b/yaqc/yaqc/_socket.py index 28a8375..3b1a3ff 100644 --- a/yaqc/yaqc/_socket.py +++ b/yaqc/yaqc/_socket.py @@ -9,7 +9,6 @@ from ._schema import handshake_request, handshake_response - BUFFSIZE = 4096 diff --git a/yaqd-core/yaqd_core/__version__.py b/yaqd-core/yaqd_core/__version__.py index 2a4b9d8..bd927e4 100644 --- a/yaqd-core/yaqd_core/__version__.py +++ b/yaqd-core/yaqd_core/__version__.py @@ -3,7 +3,6 @@ import pathlib import subprocess - here = pathlib.Path(__file__).resolve().parent __all__ = ["__version__", "__branch__", "__avro_version__"] diff --git a/yaqd-core/yaqd_core/logging/__init__.py b/yaqd-core/yaqd_core/logging/__init__.py index 5161e6f..878d011 100644 --- a/yaqd-core/yaqd_core/logging/__init__.py +++ b/yaqd-core/yaqd_core/logging/__init__.py @@ -14,7 +14,6 @@ import logging - # Log levels as defined by sd-daemon(3) DEBUG = logging.DEBUG INFO = logging.INFO diff --git a/yaqd-core/yaqd_core/testing/_run_daemon.py b/yaqd-core/yaqd_core/testing/_run_daemon.py index 2642661..283cf84 100644 --- a/yaqd-core/yaqd_core/testing/_run_daemon.py +++ b/yaqd-core/yaqd_core/testing/_run_daemon.py @@ -2,7 +2,6 @@ import subprocess import time - __all__ = ["run_daemon_entry_point", "run_daemon_from_file"] diff --git a/yaqd-fakes/yaqd_fakes/__version__.py b/yaqd-fakes/yaqd_fakes/__version__.py index cb4fadc..e44bf01 100644 --- a/yaqd-fakes/yaqd_fakes/__version__.py +++ b/yaqd-fakes/yaqd_fakes/__version__.py @@ -3,7 +3,6 @@ import pathlib import subprocess - here = pathlib.Path(__file__).resolve().parent