diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6506f7349d..6068d0003d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,7 +7,7 @@ default_language_version: python: python3 repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.8.0 + rev: v0.8.1 hooks: - id: ruff args: ["--fix", "--show-fixes"] diff --git a/pyproject.toml b/pyproject.toml index 63ecdd85be..c4c3a7a4e2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -294,11 +294,7 @@ extend-select = [ "W", # pycodestyle warnings ] ignore = [ - "ANN101", # deprecated - "ANN102", # deprecated "ANN401", - "PT004", # deprecated - "PT005", # deprecated "PT011", # TODO: apply this rule "PT012", # TODO: apply this rule "RET505", @@ -306,7 +302,6 @@ ignore = [ "RUF005", "SIM108", "TRY003", - "UP027", # deprecated "UP038", # https://github.com/astral-sh/ruff/issues/7871 # https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules "W191", diff --git a/src/zarr/core/group.py b/src/zarr/core/group.py index 13a8c7209a..2ca6e209fd 100644 --- a/src/zarr/core/group.py +++ b/src/zarr/core/group.py @@ -434,7 +434,7 @@ async def from_store( async def open( cls, store: StoreLike, - zarr_format: Literal[2, 3, None] = 3, + zarr_format: Literal[2, 3] | None = 3, use_consolidated: bool | str | None = None, ) -> AsyncGroup: """Open a new AsyncGroup @@ -1691,7 +1691,7 @@ def from_store( def open( cls, store: StoreLike, - zarr_format: Literal[2, 3, None] = 3, + zarr_format: Literal[2, 3] | None = 3, ) -> Group: """Open a group from an initialized store.