Skip to content

Commit b800d05

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 4be931b commit b800d05

2 files changed

Lines changed: 3 additions & 7 deletions

File tree

src/spatialdata/_io/io_shapes.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ def _write_shapes_v01(shapes: GeoDataFrame, group: zarr.Group, element_format: F
154154
attrs["version"] = element_format.spatialdata_format_version
155155
return attrs
156156

157+
157158
def _write_shapes_v02_v03(
158159
shapes: GeoDataFrame, group: zarr.Group, element_format: Format, geometry_encoding: Literal["WKB", "geoarrow"]
159160
) -> Any:

tests/io/test_store_abstractions.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030

3131
from __future__ import annotations
3232

33-
import pytest
3433
from fsspec.implementations.memory import MemoryFileSystem
3534
from upath import UPath
3635

@@ -130,9 +129,7 @@ def test_roundtrip_points_only(self, points: SpatialData) -> None:
130129
read = SpatialData.read(upath)
131130
assert_spatial_data_objects_are_identical(points, read)
132131

133-
def test_write_read_write_points_preserves_categorical_schema(
134-
self, points: SpatialData
135-
) -> None:
132+
def test_write_read_write_points_preserves_categorical_schema(self, points: SpatialData) -> None:
136133
"""Regression guard for the arrow-filesystem categorical round-trip.
137134
138135
This PR migrated points io to ``to_parquet`` / ``read_parquet`` with
@@ -231,9 +228,7 @@ def counting_cat_file(path, *args, **kwargs):
231228
# With consolidated metadata, we expect very few small-metadata GETs for a
232229
# trivial 1-image sdata. Without it, typical count is >> 10. The exact bound is
233230
# a documented, loose sanity check, not a micro-benchmark.
234-
assert call_count["n"] < 10, (
235-
f"expected consolidated metadata to reduce GETs, saw {call_count['n']}"
236-
)
231+
assert call_count["n"] < 10, f"expected consolidated metadata to reduce GETs, saw {call_count['n']}"
237232

238233

239234
# ---------------------------------------------------------------------------

0 commit comments

Comments
 (0)