From 9f27badc57c9a6206041794fe8f82ee56b5c01aa Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 21 Apr 2025 16:28:38 +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.2 → v0.11.6](https://github.com/astral-sh/ruff-pre-commit/compare/v0.8.2...v0.11.6) --- .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 a832683..d11bcf3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -19,7 +19,7 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: v0.8.2 + rev: v0.11.6 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] From 57303d03c9378cc49e688f8562e0479c9ce91f74 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 21 Apr 2025 16:29:16 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/spatialexperiment/_validators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spatialexperiment/_validators.py b/src/spatialexperiment/_validators.py index c1756bf..b2b884d 100644 --- a/src/spatialexperiment/_validators.py +++ b/src/spatialexperiment/_validators.py @@ -53,7 +53,7 @@ def _validate_spatial_coords(spatial_coords, column_data): return if not hasattr(spatial_coords, "shape"): - raise TypeError("Spatial coordinates must be a dataframe-like object." "Does not contain a `shape` property.") + raise TypeError("Spatial coordinates must be a dataframe-like object.Does not contain a `shape` property.") if column_data.shape[0] != spatial_coords.shape[0]: raise ValueError("'spatial_coords' do not contain coordinates for all cells.")