Skip to content

Commit de28484

Browse files
committed
Update import statements in test_nvcodec_utils.py to include ruff linting rule
- Modified import statements in the test file to include the RUF100 linting rule, ensuring better adherence to coding standards. - This change enhances the clarity of the import handling tests. Signed-off-by: [Your Name] <your.email@example.com> Signed-off-by: Abhinav Garg <abhinavg@stanford.edu>
1 parent e15a79e commit de28484

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/utils/test_nvcodec_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def test_module_imports_gracefully_without_dependencies(self) -> None:
9191
"""Test that the module can be imported even when GPU dependencies are missing."""
9292
# If we got here, the import was successful
9393
# This test verifies that import failures are handled gracefully
94-
from nemo_curator.utils import nvcodec_utils # noqa: PLC0415
94+
from nemo_curator.utils import nvcodec_utils # noqa: PLC0415, RUF100
9595

9696
# Verify the module has expected attributes
9797
assert hasattr(nvcodec_utils, "FrameExtractionPolicy")
@@ -1179,7 +1179,7 @@ def test_error_messages_are_helpful(self) -> None:
11791179
def test_all_classes_can_be_imported(self) -> None:
11801180
"""Test that all public classes can be imported regardless of dependency availability."""
11811181
# All these should be importable even when dependencies are missing
1182-
from nemo_curator.utils.nvcodec_utils import ( # noqa: PLC0415
1182+
from nemo_curator.utils.nvcodec_utils import ( # noqa: PLC0415, RUF100
11831183
FrameExtractionPolicy,
11841184
NvVideoDecoder,
11851185
PyNvcFrameExtractor,

0 commit comments

Comments
 (0)