diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 08a47e2..cb7c80b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -42,14 +42,14 @@ repos: args: [--prose-wrap=always] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.8.3" + rev: "v0.9.2" hooks: - id: ruff args: ["--fix", "--show-fixes"] - id: ruff-format - repo: https://github.com/pre-commit/mirrors-mypy - rev: "v1.13.0" + rev: "v1.14.1" hooks: - id: mypy files: src|tests @@ -77,7 +77,7 @@ repos: additional_dependencies: ["validate-pyproject-schema-store[all]"] - repo: https://github.com/python-jsonschema/check-jsonschema - rev: "0.30.0" + rev: "0.31.0" hooks: - id: check-dependabot - id: check-github-workflows diff --git a/src/pyramid_sampler/sampler.py b/src/pyramid_sampler/sampler.py index e23e0f7..7dd173d 100644 --- a/src/pyramid_sampler/sampler.py +++ b/src/pyramid_sampler/sampler.py @@ -195,7 +195,7 @@ def downsample( lev_shape = self._get_level_shape(level) nchunks_by_dim = self._get_level_nchunks(lev_shape) if np.any(nchunks_by_dim == 0): - msg = f"cannot subdivide further, stopping downsampling at level {level-1}." + msg = f"cannot subdivide further, stopping downsampling at level {level - 1}." sampler_log.info(msg) break msg = f"downsampling to level {level}."