diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c08b8f8a..c02a7062 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,26 +7,26 @@ ci: default_stages: [pre-commit, pre-push] repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v5.0.0 + rev: v6.0.0 hooks: - id: trailing-whitespace - id: check-yaml - id: debug-statements - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.11.12 + rev: v0.13.3 hooks: - - id: ruff + - id: ruff-check args: ["--fix", "--show-fixes"] - id: ruff-format - repo: https://github.com/scientific-python/cookie - rev: 2025.05.02 + rev: 2025.10.01 hooks: - id: sp-repo-review - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.16.0 + rev: v1.18.2 hooks: - id: mypy args: [--config-file, pyproject.toml] diff --git a/c-blosc b/c-blosc index 04c06fb7..616f4b73 160000 --- a/c-blosc +++ b/c-blosc @@ -1 +1 @@ -Subproject commit 04c06fb7339d3df3600b1862077b8699b30a0e1d +Subproject commit 616f4b7343a8479f7e71dd3d7025bd92c9a6bbd0 diff --git a/numcodecs/tests/test_zarr3.py b/numcodecs/tests/test_zarr3.py index 6102939e..4a362b31 100644 --- a/numcodecs/tests/test_zarr3.py +++ b/numcodecs/tests/test_zarr3.py @@ -181,7 +181,7 @@ def test_generic_filter_packbits(store: StorePath): a = zarr.open_array(store / "generic_packbits", mode="r") np.testing.assert_array_equal(data, a[:, :]) - with pytest.raises(ValueError, match=".*requires bool dtype.*"): + with pytest.raises(ValueError, match=r".*requires bool dtype.*"): zarr.create_array( store / "generic_packbits_err", shape=data.shape, diff --git a/pyproject.toml b/pyproject.toml index c925cd17..83674bc6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -202,13 +202,13 @@ ignore = [ "PT001", "PT011", "PT012", + "PT031", "RET505", "RET506", "SIM108", "TRY003", "TRY301", "UP007", - "UP038", # https://github.com/astral-sh/ruff/issues/7871 # https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules "W191", "E111", @@ -266,4 +266,4 @@ features = ["test"] [tool.hatch.envs.test.scripts] list-deps = "pip list" -test-zarr = "pytest numcodecs/tests/test_zarr3.py numcodecs/tests/test_zarr3_import.py" \ No newline at end of file +test-zarr = "pytest numcodecs/tests/test_zarr3.py numcodecs/tests/test_zarr3_import.py"