diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 170cc5e..eb59c76 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -25,7 +25,7 @@ repos: language: system pass_filenames: false - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.15.16 + rev: v0.15.17 hooks: - id: ruff args: ["--fix"] diff --git a/pyproject.toml b/pyproject.toml index b1cc006..1c0c0d9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -20,10 +20,7 @@ classifiers = [ "Typing :: Typed", ] dynamic = ["version"] -dependencies = [ - "numpy>=1.24", - "zarr>=3.1", -] +dependencies = ["numpy>=1.24", "zarr>=3.1"] [dependency-groups] test = [ @@ -31,7 +28,7 @@ test = [ "fsspec>2024", "numcodecs>=0.16.1", "obstore>=0.8.2", - "pytest", + "pytest!=9.1.0", # https://github.com/pytest-dev/pytest/issues/14591 "pytest-asyncio", "pytest-xdist", "pytest-mock", @@ -41,8 +38,8 @@ dev = [ "maturin", "pip", "pre-commit", - {include-group = "test"}, - {include-group = "doc"}, + { include-group = "test" }, + { include-group = "doc" }, ] [project.entry-points."zarr.codec_pipeline"] diff --git a/tests/conftest.py b/tests/conftest.py index e78149c..33cb129 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -11,6 +11,7 @@ if TYPE_CHECKING: from collections.abc import Iterable + from pathlib import Path from typing import Any, Literal from zarr.abc.store import Store @@ -31,7 +32,7 @@ def _setup_codec_pipeline(): async def parse_store( - store: Literal["local", "memory", "remote", "zip"], path: str + store: Literal["local", "memory", "remote", "zip"], path: Path ) -> LocalStore | MemoryStore | FsspecStore | ZipStore: if store == "local": return await LocalStore.open(path) @@ -40,14 +41,14 @@ async def parse_store( if store == "remote": return await FsspecStore.open(url=path) if store == "zip": - return await ZipStore.open(path + "/zarr.zip") + return await ZipStore.open(path / "zarr.zip") raise AssertionError @pytest.fixture(params=["local"]) -async def store(request: pytest.FixtureRequest, tmpdir) -> Store: +async def store(request: pytest.FixtureRequest, tmp_path: Path) -> Store: param = request.param - return await parse_store(param, str(tmpdir)) + return await parse_store(param, tmp_path) @pytest.fixture