Skip to content

Commit 6025dc0

Browse files
authored
Merge pull request #19 from data-exp-lab/pre-commit-ci-update-config
chore: update pre-commit hooks
2 parents f4a3d84 + 757c4be commit 6025dc0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,14 @@ repos:
4242
args: [--prose-wrap=always]
4343

4444
- repo: https://github.com/astral-sh/ruff-pre-commit
45-
rev: "v0.8.3"
45+
rev: "v0.9.2"
4646
hooks:
4747
- id: ruff
4848
args: ["--fix", "--show-fixes"]
4949
- id: ruff-format
5050

5151
- repo: https://github.com/pre-commit/mirrors-mypy
52-
rev: "v1.13.0"
52+
rev: "v1.14.1"
5353
hooks:
5454
- id: mypy
5555
files: src|tests
@@ -77,7 +77,7 @@ repos:
7777
additional_dependencies: ["validate-pyproject-schema-store[all]"]
7878

7979
- repo: https://github.com/python-jsonschema/check-jsonschema
80-
rev: "0.30.0"
80+
rev: "0.31.0"
8181
hooks:
8282
- id: check-dependabot
8383
- id: check-github-workflows

src/pyramid_sampler/sampler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ def downsample(
195195
lev_shape = self._get_level_shape(level)
196196
nchunks_by_dim = self._get_level_nchunks(lev_shape)
197197
if np.any(nchunks_by_dim == 0):
198-
msg = f"cannot subdivide further, stopping downsampling at level {level-1}."
198+
msg = f"cannot subdivide further, stopping downsampling at level {level - 1}."
199199
sampler_log.info(msg)
200200
break
201201
msg = f"downsampling to level {level}."

0 commit comments

Comments
 (0)