Skip to content

Commit

Permalink
Autoupdate pre-commit hooks (#1256)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Jan 27, 2025
1 parent 0d7e0ce commit 465d02b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ repos:
- id: trailing-whitespace # Trims trailing whitespace

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.3
rev: v0.9.3
hooks:
- id: ruff
- id: ruff-format
Expand All @@ -34,7 +34,7 @@ repos:
- id: rst-inline-touching-normal # detect mistake of inline code touching normal text in rst

- repo: https://github.com/asottile/pyupgrade
rev: v3.19.0
rev: v3.19.1
hooks:
- id: pyupgrade
args: ['--py39-plus', '--keep-runtime-typing']
Expand Down
6 changes: 3 additions & 3 deletions tests/transforms/test_transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,9 @@ def test_transforms_subject_4d(self):
'CopyAffine',
)
if transform.name not in exclude:
assert (
subject.shape[0] == transformed.shape[0]
), f'Different number of channels after {transform.name}'
assert subject.shape[0] == transformed.shape[0], (
f'Different number of channels after {transform.name}'
)
self.assert_tensor_not_equal(
subject.t1.data[1],
transformed.t1.data[1],
Expand Down

0 comments on commit 465d02b

Please sign in to comment.