Skip to content
This repository has been archived by the owner on Feb 11, 2025. It is now read-only.

Commit

Permalink
Linting updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobbieker committed Jan 26, 2025
1 parent b69b86a commit 5fbfc82
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ lint.exclude = [
line-length = 100

# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
lint.dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"

# Assume Python 3.10.
target-version = "py310"
Expand Down
5 changes: 4 additions & 1 deletion tests/test_zarr3.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"""Test the Zarr version 3 codec with the Blosc2 codec."""
from __future__ import annotations

from typing import TYPE_CHECKING
Expand All @@ -18,7 +19,7 @@
pytestmark = [
pytest.mark.filterwarnings("ignore:Codec 'numcodecs.*' not configured in config.*:UserWarning"),
pytest.mark.filterwarnings(
"ignore:Numcodecs codecs are not in the Zarr version 3 specification and may not be supported by other zarr implementations."
"ignore:Numcodecs codecs are not in the Zarr version 3 specification and may not be supported by other zarr implementations." # noqa
),
]

Expand All @@ -35,6 +36,7 @@

@pytest.fixture
def store() -> StorePath:
"""Make a new in-memory store."""
return StorePath(MemoryStore(read_only=False))


Expand All @@ -48,6 +50,7 @@ def store() -> StorePath:
def test_generic_compressor(
store: StorePath, codec_class: type[numcodecs.zarr3._NumcodecsBytesBytesCodec]
):
"""Test that the generic compressor works with the Blosc2 codec."""
data = np.arange(0, 256, dtype="uint16").reshape((16, 16))

with pytest.warns(UserWarning, match=EXPECTED_WARNING_STR):
Expand Down

0 comments on commit 5fbfc82

Please sign in to comment.