diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0abcf22..81132b9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,13 +1,13 @@ repos: - - repo: https://github.com/psf/black - rev: 23.11.0 # Replace by any tag/version: https://github.com/psf/black/tags + - repo: https://github.com/psf/black-pre-commit-mirror + rev: 25.9.0 # Replace by any tag/version: https://github.com/psf/black/tags hooks: - id: black language_version: python3 # Should be a command that runs python3.6+ args: ["--line-length", "99"] - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.5.0 + rev: v6.0.0 hooks: - id: trailing-whitespace exclude: datasets|.data$ diff --git a/yaqc_cmds/__init__.py b/yaqc_cmds/__init__.py index 4965cce..542c668 100644 --- a/yaqc_cmds/__init__.py +++ b/yaqc_cmds/__init__.py @@ -1,5 +1,4 @@ """Unified software for controlling hardware and collecting data in the Wright group.""" - from .__version__ import * from .project import * diff --git a/yaqc_cmds/__version__.py b/yaqc_cmds/__version__.py index dc987bb..f049f1f 100644 --- a/yaqc_cmds/__version__.py +++ b/yaqc_cmds/__version__.py @@ -1,6 +1,5 @@ """Define version.""" - import pathlib import subprocess diff --git a/yaqc_cmds/hardware/hardware.py b/yaqc_cmds/hardware/hardware.py index 862ed03..c0c835f 100644 --- a/yaqc_cmds/hardware/hardware.py +++ b/yaqc_cmds/hardware/hardware.py @@ -1,6 +1,7 @@ """ Parent hardware class and associated. """ + __all__ = ["Driver", "GUI", "Hardware", "import_hardwares"] diff --git a/yaqc_cmds/project/file_dialog_handler.py b/yaqc_cmds/project/file_dialog_handler.py index b4e64ff..6a049f2 100644 --- a/yaqc_cmds/project/file_dialog_handler.py +++ b/yaqc_cmds/project/file_dialog_handler.py @@ -2,7 +2,6 @@ QFileDialog objects can only be run in the main thread. """ - ### imports ################################################################### diff --git a/yaqc_cmds/project/kit.py b/yaqc_cmds/project/kit.py index 6d2310e..4f60c63 100644 --- a/yaqc_cmds/project/kit.py +++ b/yaqc_cmds/project/kit.py @@ -2,7 +2,6 @@ a collection of small, general purpose objects and methods """ - ### import #################################################################### diff --git a/yaqc_cmds/sensors/_sensors.py b/yaqc_cmds/sensors/_sensors.py index fff353e..0710be7 100644 --- a/yaqc_cmds/sensors/_sensors.py +++ b/yaqc_cmds/sensors/_sensors.py @@ -1,6 +1,5 @@ """Sensors.""" - import appdirs import pathlib import time diff --git a/yaqc_cmds/somatic/_wt5.py b/yaqc_cmds/somatic/_wt5.py index 5c71a81..a48e278 100644 --- a/yaqc_cmds/somatic/_wt5.py +++ b/yaqc_cmds/somatic/_wt5.py @@ -1,6 +1,5 @@ """wt5 data file functions""" - import time import threading diff --git a/yaqc_cmds/somatic/acquisition.py b/yaqc_cmds/somatic/acquisition.py index e2a8d07..3c0ffe2 100644 --- a/yaqc_cmds/somatic/acquisition.py +++ b/yaqc_cmds/somatic/acquisition.py @@ -2,7 +2,6 @@ Acquisition infrastructure shared by all modules. """ - ### import #################################################################### diff --git a/yaqc_cmds/somatic/modules/abstract_tuning.py b/yaqc_cmds/somatic/modules/abstract_tuning.py index 4579882..40af2b3 100644 --- a/yaqc_cmds/somatic/modules/abstract_tuning.py +++ b/yaqc_cmds/somatic/modules/abstract_tuning.py @@ -32,8 +32,7 @@ def process(self, scan_folder): reference_image=str(pathlib.Path(scan_folder) / self.reference_image), ) - def _process(self, data, curve, channel, gtol, ltol, level, scan_folder, config): - ... + def _process(self, data, curve, channel, gtol, ltol, level, scan_folder, config): ... @property def config_dictionary(self):