chore(formatter): upgrade to black v25

This commit is contained in:
wakonig_k 2025-05-01 15:19:33 +02:00
parent 77e9f9b2f8
commit 673be87a2d
10 changed files with 14 additions and 15 deletions

View File

@ -1,5 +1,4 @@
"""AreaDetector Devices """AreaDetector Devices"""
"""
# isort: skip_file # isort: skip_file
from ophyd import EpicsSignal, EpicsSignalRO, EpicsSignalWithRBV from ophyd import EpicsSignal, EpicsSignalRO, EpicsSignalWithRBV

View File

@ -1,4 +1,4 @@
""" Module for integrating the Stanford Research DG645 Delay Generator""" """Module for integrating the Stanford Research DG645 Delay Generator"""
import enum import enum
import time import time

View File

@ -1,6 +1,6 @@
""" """
This module contains the base class for custom device integrations at PSI. This module contains the base class for custom device integrations at PSI.
Please check the device section in BEC's developer documentation Please check the device section in BEC's developer documentation
(https://bec.readthedocs.io/en/latest/) for more information about device integration. (https://bec.readthedocs.io/en/latest/) for more information about device integration.
""" """

View File

@ -1,8 +1,8 @@
""" This module provides a range of protocols that describe the expected """This module provides a range of protocols that describe the expected
interface for different types of devices. interface for different types of devices.
The protocols below can be used as teamplates for functionality to be implemeted The protocols below can be used as teamplates for functionality to be implemeted
by different type of devices. They further facilitate runtime checks on devices by different type of devices. They further facilitate runtime checks on devices
and provide a minimum set of properties required for a device to be loadable by BEC. and provide a minimum set of properties required for a device to be loadable by BEC.
The protocols are: The protocols are:
@ -13,7 +13,7 @@ The protocols are:
- BECPositionerProtocol: Protocol for positioners. - BECPositionerProtocol: Protocol for positioners.
- BECFlyerProtocol: Protocol with for flyers. - BECFlyerProtocol: Protocol with for flyers.
Keep in mind, that a device of type flyer should generally also implement the BECDeviceProtocol Keep in mind, that a device of type flyer should generally also implement the BECDeviceProtocol
with the functionality needed for scans. In addition, flyers also implement the BECFlyerProtocol. with the functionality needed for scans. In addition, flyers also implement the BECFlyerProtocol.
Similarly, positioners should also implement the BECDeviceProtocol and BECPositionerProtocol. Similarly, positioners should also implement the BECDeviceProtocol and BECPositionerProtocol.

View File

@ -1,4 +1,4 @@
""" Module for simulated positioner devices. """ """Module for simulated positioner devices."""
import threading import threading
import time as ttime import time as ttime

View File

@ -1,4 +1,4 @@
""" Utilities to mock and test devices.""" """Utilities to mock and test devices."""
from typing import TYPE_CHECKING from typing import TYPE_CHECKING
from unittest import mock from unittest import mock

View File

@ -1,4 +1,4 @@
""" Utility class linked to BEC""" """Utility class linked to BEC"""
import time import time

View File

@ -1,4 +1,4 @@
"""Module for ophyd_devices specific errors. """ """Module for ophyd_devices specific errors."""
class DeviceStopError(Exception): class DeviceStopError(Exception):

View File

@ -31,7 +31,7 @@ dependencies = [
dev = [ dev = [
"bec-server~=3.13", "bec-server~=3.13",
"pillow ~= 11.1", "pillow ~= 11.1",
"black~=24.0", "black~=25.0",
"isort~=5.13, >=5.13.2", "isort~=5.13, >=5.13.2",
"coverage~=7.0", "coverage~=7.0",
"pylint~=3.0", "pylint~=3.0",

View File

@ -524,7 +524,7 @@ def test_proxy_config_and_props_stay_in_sync(h5proxy_fixture: tuple[H5ImageRepla
def test_stage_camera_proxy_image_moves_with_samx_and_samy( def test_stage_camera_proxy_image_moves_with_samx_and_samy(
stage_camera_proxy_fixture: tuple[StageCameraProxy, SimCamera, SimPositioner, SimPositioner] stage_camera_proxy_fixture: tuple[StageCameraProxy, SimCamera, SimPositioner, SimPositioner],
): ):
"""Test camera stage proxy to compute readback from readback of positioner samx and samy""" """Test camera stage proxy to compute readback from readback of positioner samx and samy"""
proxy, camera, samx, samy = stage_camera_proxy_fixture proxy, camera, samx, samy = stage_camera_proxy_fixture
@ -542,7 +542,7 @@ def test_stage_camera_proxy_image_moves_with_samx_and_samy(
def test_stage_camera_proxy_image_shape( def test_stage_camera_proxy_image_shape(
stage_camera_proxy_fixture: tuple[StageCameraProxy, SimCamera, SimPositioner, SimPositioner] stage_camera_proxy_fixture: tuple[StageCameraProxy, SimCamera, SimPositioner, SimPositioner],
): ):
"""Make sure that the produced image has the same shape as the detector being proxied""" """Make sure that the produced image has the same shape as the detector being proxied"""
proxy, camera, samx, samy = stage_camera_proxy_fixture proxy, camera, samx, samy = stage_camera_proxy_fixture