Skip to content

Commit 5192676

Browse files
author
Cipher
committed
style: apply Black auto-formatting
Black reformatted code according to MONAI's style requirements: - Add blank line after module docstring - Remove extra blank lines before class definition - Reformat long assertions to Black's multi-line style Note: Some lines exceed 120 chars due to f-string messages, which are allowed per setup.cfg (E501 ignored for strings). Signed-off-by: Cipher <cipher@openclaw.ai>
1 parent a29067a commit 5192676

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

monai/transforms/io/array.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"""
1212
A collection of "vanilla" transforms for IO functions.
1313
"""
14+
1415
from __future__ import annotations
1516

1617
import inspect

tests/transforms/test_load_image.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -499,8 +499,6 @@ def test_correct(self, input_param, expected_shape, track_meta):
499499
self.assertFalse(hasattr(r, "affine"))
500500

501501

502-
503-
504502
class TestLoadImageMissingReader(unittest.TestCase):
505503
"""Test that LoadImage raises RuntimeError when a user-specified reader is not installed."""
506504

@@ -546,8 +544,10 @@ def failing_reader(*args, **kwargs):
546544
self.assertIsInstance(loader, LoadImage)
547545

548546
# Verify we got the expected debug log about skipping the missing reader
549-
self.assertTrue(any("not installed" in msg for msg in cm.output),
550-
f"Expected 'not installed' in debug logs, got: {cm.output}")
547+
self.assertTrue(
548+
any("not installed" in msg for msg in cm.output),
549+
f"Expected 'not installed' in debug logs, got: {cm.output}",
550+
)
551551
finally:
552552
# Restore original reader
553553
if original_itk is not None:

0 commit comments

Comments
 (0)