From 0fce6da6ff336644687e28d51da7540d767d92f0 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 20 Jan 2025 22:46:48 +0000 Subject: [PATCH 1/2] chore: update pre-commit hooks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.8.3 → v0.9.2](https://github.com/astral-sh/ruff-pre-commit/compare/v0.8.3...v0.9.2) - [github.com/pre-commit/mirrors-mypy: v1.13.0 → v1.14.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.13.0...v1.14.1) - [github.com/python-jsonschema/check-jsonschema: 0.30.0 → 0.31.0](https://github.com/python-jsonschema/check-jsonschema/compare/0.30.0...0.31.0) --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 From 62f6a4a6922f881cbe4446763c6b3d0c3e3b3403 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 20 Jan 2025 22:47:03 +0000 Subject: [PATCH 2/2] style: pre-commit fixes --- src/pyramid_sampler/sampler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pyramid_sampler/sampler.py b/src/pyramid_sampler/sampler.py index df8a61e..f4b543e 100644 --- a/src/pyramid_sampler/sampler.py +++ b/src/pyramid_sampler/sampler.py @@ -193,7 +193,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}."