Skip to content

Commit f332afa

Browse files
[pre-commit.ci] pre-commit autoupdate (#173)
Co-authored-by: Philipp A. <flying-sheep@web.de>
1 parent c1ac9b6 commit f332afa

3 files changed

Lines changed: 10 additions & 12 deletions

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ repos:
2525
language: system
2626
pass_filenames: false
2727
- repo: https://github.com/astral-sh/ruff-pre-commit
28-
rev: v0.15.16
28+
rev: v0.15.17
2929
hooks:
3030
- id: ruff
3131
args: ["--fix"]

pyproject.toml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,15 @@ classifiers = [
2020
"Typing :: Typed",
2121
]
2222
dynamic = ["version"]
23-
dependencies = [
24-
"numpy>=1.24",
25-
"zarr>=3.1",
26-
]
23+
dependencies = ["numpy>=1.24", "zarr>=3.1"]
2724

2825
[dependency-groups]
2926
test = [
3027
"aiohttp",
3128
"fsspec>2024",
3229
"numcodecs>=0.16.1",
3330
"obstore>=0.8.2",
34-
"pytest",
31+
"pytest!=9.1.0", # https://github.com/pytest-dev/pytest/issues/14591
3532
"pytest-asyncio",
3633
"pytest-xdist",
3734
"pytest-mock",
@@ -41,8 +38,8 @@ dev = [
4138
"maturin",
4239
"pip",
4340
"pre-commit",
44-
{include-group = "test"},
45-
{include-group = "doc"},
41+
{ include-group = "test" },
42+
{ include-group = "doc" },
4643
]
4744

4845
[project.entry-points."zarr.codec_pipeline"]

tests/conftest.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
if TYPE_CHECKING:
1313
from collections.abc import Iterable
14+
from pathlib import Path
1415
from typing import Any, Literal
1516

1617
from zarr.abc.store import Store
@@ -31,7 +32,7 @@ def _setup_codec_pipeline():
3132

3233

3334
async def parse_store(
34-
store: Literal["local", "memory", "remote", "zip"], path: str
35+
store: Literal["local", "memory", "remote", "zip"], path: Path
3536
) -> LocalStore | MemoryStore | FsspecStore | ZipStore:
3637
if store == "local":
3738
return await LocalStore.open(path)
@@ -40,14 +41,14 @@ async def parse_store(
4041
if store == "remote":
4142
return await FsspecStore.open(url=path)
4243
if store == "zip":
43-
return await ZipStore.open(path + "/zarr.zip")
44+
return await ZipStore.open(path / "zarr.zip")
4445
raise AssertionError
4546

4647

4748
@pytest.fixture(params=["local"])
48-
async def store(request: pytest.FixtureRequest, tmpdir) -> Store:
49+
async def store(request: pytest.FixtureRequest, tmp_path: Path) -> Store:
4950
param = request.param
50-
return await parse_store(param, str(tmpdir))
51+
return await parse_store(param, tmp_path)
5152

5253

5354
@pytest.fixture

0 commit comments

Comments
 (0)