Skip to content

Commit 64c2bdc

Browse files
chore: update pre-commit hooks (#3481)
updates: - github.com/astral-sh/ruff-pre-commit: v0.12.11 → v0.13.1 - github.com/pre-commit/mirrors-mypy: v1.17.1 → v1.18.2
1 parent 24385ab commit 64c2bdc

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ci:
66
default_stages: [pre-commit, pre-push]
77
repos:
88
- repo: https://github.com/astral-sh/ruff-pre-commit
9-
rev: v0.12.11
9+
rev: v0.13.1
1010
hooks:
1111
- id: ruff-check
1212
args: ["--fix", "--show-fixes"]
@@ -23,7 +23,7 @@ repos:
2323
exclude: mkdocs.yml
2424
- id: trailing-whitespace
2525
- repo: https://github.com/pre-commit/mirrors-mypy
26-
rev: v1.17.1
26+
rev: v1.18.2
2727
hooks:
2828
- id: mypy
2929
files: src|tests

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,9 +316,9 @@ ignore = [
316316
"RET505",
317317
"RET506",
318318
"RUF005",
319+
"RUF043",
319320
"SIM108",
320321
"TRY003",
321-
"UP038", # https://github.com/astral-sh/ruff/issues/7871
322322
# https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
323323
"W191",
324324
"E111",

src/zarr/core/dtype/wrapper.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,7 @@ class variable, and it should generally be unique across different data types.
7171
"""
7272

7373
# this class will create a native data type
74-
# mypy currently disallows class variables to contain type parameters
75-
# but it seems OK for us to use it here:
76-
# https://github.com/python/typing/discussions/1424#discussioncomment-7989934
77-
dtype_cls: ClassVar[type[TDType_co]] # type: ignore[misc]
74+
dtype_cls: ClassVar[type[TDType_co]]
7875
_zarr_v3_name: ClassVar[str]
7976

8077
@classmethod

0 commit comments

Comments
 (0)