From 7a75dbc3b69b29ec49f4db9d8669bb51678fac79 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 6 May 2024 21:33:42 +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.3.5 → v0.4.3](https://github.com/astral-sh/ruff-pre-commit/compare/v0.3.5...v0.4.3) - [github.com/pre-commit/pre-commit-hooks: v4.5.0 → v4.6.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.5.0...v4.6.0) - [github.com/pre-commit/mirrors-mypy: v1.9.0 → v1.10.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.9.0...v1.10.0) --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 65efed03..efa4ea90 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,7 @@ exclude: '^$' fail_fast: false repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: 'v0.3.5' + rev: 'v0.4.3' hooks: - id: ruff # once https://github.com/astral-sh/ruff/issues/2402 is fully resolved then we can get rid of flake8: @@ -11,7 +11,7 @@ repos: hooks: - id: flake8 - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.5.0 + rev: v4.6.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer @@ -23,7 +23,7 @@ repos: - id: bandit args: [--ini, .bandit] - repo: https://github.com/pre-commit/mirrors-mypy - rev: 'v1.9.0' # Use the sha / tag you want to point at + rev: 'v1.10.0' # Use the sha / tag you want to point at hooks: - id: mypy additional_dependencies: From 0c0d61c7d79fc1b25c2a6aa22183f9ad70cdd772 Mon Sep 17 00:00:00 2001 From: David Hoese Date: Tue, 7 May 2024 21:23:58 -0500 Subject: [PATCH 2/2] Allow more flexibility in EWA dask and legacy differences --- pyresample/test/test_dask_ewa.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyresample/test/test_dask_ewa.py b/pyresample/test/test_dask_ewa.py index 42a130c0..af6b7b88 100644 --- a/pyresample/test/test_dask_ewa.py +++ b/pyresample/test/test_dask_ewa.py @@ -343,7 +343,7 @@ def test_compare_to_legacy(self, input_shape, input_dims, maximum_weight_mode): maximum_weight_mode=maximum_weight_mode) legacy_arr = legacy_data.compute() - np.testing.assert_allclose(new_arr, legacy_arr) + np.testing.assert_allclose(new_arr, legacy_arr, atol=1e-6) @pytest.mark.parametrize( ('input_shape', 'input_dims', 'as_np'),