Skip to content

Commit

Permalink
Merge pull request #19 from data-exp-lab/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
chore: update pre-commit hooks
  • Loading branch information
chrishavlin authored Jan 22, 2025
2 parents f4a3d84 + 757c4be commit 6025dc0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/pyramid_sampler/sampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}."
Expand Down

0 comments on commit 6025dc0

Please sign in to comment.