From 1296a039899c14007dcdcaf6313ade357ad9e755 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 23:29:45 +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.8.6 → v0.9.2](https://github.com/astral-sh/ruff-pre-commit/compare/v0.8.6...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 aa3eb74..8294857 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -10,7 +10,7 @@ repos: - id: check-yaml - id: check-added-large-files - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.8.6 + rev: v0.9.2 hooks: - id: ruff args: ["--fix", "--show-fixes"] From 472733fd919da9325d4b80accacdaa73b8573d28 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 21 Jan 2025 16:04:16 +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/test_crs.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/unit/test_crs.py b/tests/unit/test_crs.py index 0b42cce..990e42b 100644 --- a/tests/unit/test_crs.py +++ b/tests/unit/test_crs.py @@ -107,9 +107,9 @@ def test_create_crs(): """Test create crs transforms input info into array with metadata.""" crs_data_array = create_crs(sample_target_info) assert 'crs_wkt' in crs_data_array.attrs - assert ( - 'NSIDC EASE-Grid 2.0 Global' in crs_data_array.crs_wkt - ), f'expected "NSIDC EASE-Grid 2.0 Global" in {crs_data_array.crs_wkt}' + assert 'NSIDC EASE-Grid 2.0 Global' in crs_data_array.crs_wkt, ( + f'expected "NSIDC EASE-Grid 2.0 Global" in {crs_data_array.crs_wkt}' + ) assert crs_data_array.attrs['proj'] == ( '+proj=cea +lat_ts=30 +lon_0=0 +x_0=0 ' '+y_0=0 +datum=WGS84 +units=m +no_defs +type=crs'