From f64ad9d680c5d62225f4054f4deb89c0a914a154 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 20 Jan 2025 16:41:00 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.7.4 → v0.9.2](https://github.com/astral-sh/ruff-pre-commit/compare/v0.7.4...v0.9.2) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 390b2e6..73fd48e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,7 +13,7 @@ repos: - id: trailing-whitespace exclude: "tests/cis_tests/.*" - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.7.4 + rev: v0.9.2 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] From a1039d0893ca41faa8951a27678c67b77939b47c Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 20 Jan 2025 16:41:09 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tests/unit/bm3dornl/test_utils.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/unit/bm3dornl/test_utils.py b/tests/unit/bm3dornl/test_utils.py index 5d2db6d..2d8d8b2 100644 --- a/tests/unit/bm3dornl/test_utils.py +++ b/tests/unit/bm3dornl/test_utils.py @@ -42,7 +42,9 @@ def test_is_within_threshold(): # Test case 5: Slightly different patches, very small threshold threshold = 0.1 result = is_within_threshold(ref_patch, cmp_patch_close, threshold) - assert not result, "Failed: Slightly different patches should not be within very small distance of 0.1" + assert not result, ( + "Failed: Slightly different patches should not be within very small distance of 0.1" + ) def test_estimate_background_intensity(): @@ -62,9 +64,9 @@ def test_estimate_background_intensity(): result = estimate_background_intensity(tomostack, quantile=0.05) # Assert the result is as expected - assert np.isclose( - result, expected_intensity - ), f"Expected {expected_intensity}, but got {result}" + assert np.isclose(result, expected_intensity), ( + f"Expected {expected_intensity}, but got {result}" + ) def test_upscale_basic():