Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
11 changes: 4 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,15 @@ classifiers = [
"Typing :: Typed",
]
dynamic = ["version"]
dependencies = [
"numpy>=1.24",
"zarr>=3.1",
]
dependencies = ["numpy>=1.24", "zarr>=3.1"]

[dependency-groups]
test = [
"aiohttp",
"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",
Expand All @@ -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"]
Expand Down
9 changes: 5 additions & 4 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand All @@ -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
Expand Down
Loading