Skip to content

Commit 0b056fb

Browse files
committed
apply fixes to resolve pre-commit violations
1 parent 103d609 commit 0b056fb

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,7 @@ ignore_errors = true
395395
minversion = "7"
396396
testpaths = ["tests", "docs/user-guide"]
397397
log_cli_level = "INFO"
398+
log_level = "INFO"
398399
xfail_strict = true
399400
asyncio_mode = "auto"
400401
asyncio_default_fixture_loop_scope = "function"

src/zarr/_cli/cli.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class CLIZarrFormatV3(str, Enum):
3535
v3 = "v3"
3636

3737

38-
@app.command() # type: ignore[misc]
38+
@app.command() # type: ignore[untyped-decorator]
3939
def migrate(
4040
zarr_format: Annotated[
4141
CLIZarrFormatV3,
@@ -120,7 +120,7 @@ def migrate(
120120
sync(migrate_metadata.remove_metadata(write_store, 2, force=False, dry_run=dry_run))
121121

122122

123-
@app.command() # type: ignore[misc]
123+
@app.command() # type: ignore[untyped-decorator]
124124
def remove_metadata(
125125
zarr_format: Annotated[
126126
CLIZarrFormat,
@@ -168,7 +168,7 @@ def remove_metadata(
168168
)
169169

170170

171-
@app.callback() # type: ignore[misc]
171+
@app.callback() # type: ignore[untyped-decorator]
172172
def main(
173173
verbose: Annotated[
174174
bool,

tests/test_metadata/test_v2.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,12 +309,13 @@ def test_from_dict_extra_fields() -> None:
309309

310310

311311
def test_zstd_checksum() -> None:
312+
compressor_config: dict[str, JSON] = {"id": "zstd", "level": 5, "checksum": False}
312313
arr = zarr.create_array(
313314
{},
314315
shape=(10,),
315316
chunks=(10,),
316317
dtype="int32",
317-
compressors={"id": "zstd", "level": 5, "checksum": False},
318+
compressors=compressor_config,
318319
zarr_format=2,
319320
)
320321
metadata = json.loads(

0 commit comments

Comments
 (0)