Skip to content
Open
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
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@ repos:
- id: check-docstring-first

- repo: https://github.com/psf/black-pre-commit-mirror
rev: 25.9.0
rev: 26.1.0
hooks:
- id: black

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.13.3
rev: v0.15.4
hooks:
- id: ruff
args: ["--fix", "--show-fixes"]

- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v1.18.2"
rev: "v1.19.1"
hooks:
- id: mypy
exclude: tests,pangeo_forge_recipes/recipes
Expand All @@ -33,7 +33,7 @@ repos:
- id: rstcheck

- repo: https://github.com/rbubley/mirrors-prettier
rev: v3.6.2
rev: v3.8.1
hooks:
- id: prettier
args: ["--cache-location=.prettier_cache/cache"]
Expand All @@ -47,6 +47,6 @@ repos:
args: ["--no-schema"]

- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.24.1
rev: v0.25
hooks:
- id: validate-pyproject
6 changes: 2 additions & 4 deletions pangeo_forge_recipes/writers.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,8 @@ def consolidate_metadata(store: MutableMapping) -> MutableMapping:

# TODO: raise error if Zarr format 3 b/c zarr v3 does not support consolidated metadata
if isinstance(store, fsspec.FSMap) and isinstance(store.fs, ReferenceFileSystem):
raise ValueError(
"""Creating consolidated metadata for Kerchunk references should not
yield a performance benefit so consolidating metadata is not supported."""
)
raise ValueError("""Creating consolidated metadata for Kerchunk references should not
yield a performance benefit so consolidating metadata is not supported.""")
if isinstance(store, zarr.storage.FsspecStore):
zarr.convenience.consolidate_metadata(store)

Expand Down
Loading