From 66a2b473d01983e03431f4b3d73a5ab71e16eb99 Mon Sep 17 00:00:00 2001 From: Yousef Moazzam Date: Thu, 6 Mar 2025 13:13:55 +0000 Subject: [PATCH] Fix CI lint errors from `black` update In CI, the version of `black` being used updated from 24.10.0 to 25.1.0, causing a few small errors. --- httomo/runner/dataset_store_backing.py | 2 +- tests/runner/test_dataset_block.py | 2 +- tests/scripts/create_numpy_from_hdf5.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/httomo/runner/dataset_store_backing.py b/httomo/runner/dataset_store_backing.py index 250b03d66..d67e7b4bc 100644 --- a/httomo/runner/dataset_store_backing.py +++ b/httomo/runner/dataset_store_backing.py @@ -68,7 +68,7 @@ def _reduce_decorator_factory( """ def reduce_decorator( - func: Callable[P, DataSetStoreBacking] + func: Callable[P, DataSetStoreBacking], ) -> Callable[P, DataSetStoreBacking]: """ Decorator for store-backing calculator function. diff --git a/tests/runner/test_dataset_block.py b/tests/runner/test_dataset_block.py index 3850e7a86..5081fe5c5 100644 --- a/tests/runner/test_dataset_block.py +++ b/tests/runner/test_dataset_block.py @@ -167,7 +167,7 @@ def test_partial_block_for_chunked_data( @pytest.mark.parametrize("slicing_dim", [0, 1, 2]) def test_partial_block_for_chunked_data_with_padding_center( - slicing_dim: Literal[0, 1, 2] + slicing_dim: Literal[0, 1, 2], ): # sizes and shapes global_shape_t = [10, 10, 10] diff --git a/tests/scripts/create_numpy_from_hdf5.py b/tests/scripts/create_numpy_from_hdf5.py index 817ff0041..eed9d252a 100644 --- a/tests/scripts/create_numpy_from_hdf5.py +++ b/tests/scripts/create_numpy_from_hdf5.py @@ -19,7 +19,7 @@ # Created Date: 22/January/2025 # version ='0.1' # --------------------------------------------------------------------------- -"""Script that generates YAML pipeline for HTTomo using YAML templates from httomo-backends +"""Script that generates YAML pipeline for HTTomo using YAML templates from httomo-backends (should be already installed in your environment). Please run the generator as: