[CI] Ignore ruff D209, rejoin the docstrings it split, and silence incompatible-rule warnings (#57212)
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com> Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
1085b64425
commit
651a88c09a
@@ -59,8 +59,7 @@ def test_frame_size_hwc_chw(frame):
|
||||
def test_video_with_metadata_tensor_passthrough():
|
||||
"""Tensor frames pass through unchanged regardless of device: HF video
|
||||
processors accept tensors, and device-resident frames (e.g. NVDEC-decoded)
|
||||
must not be copied back to host.
|
||||
"""
|
||||
must not be copied back to host."""
|
||||
frames = torch.zeros((4, H, W, 3), dtype=torch.uint8)
|
||||
video, metadata = MultiModalDataParser()._get_video_with_metadata(frames)
|
||||
|
||||
@@ -71,8 +70,7 @@ def test_video_with_metadata_tensor_passthrough():
|
||||
@pytest.mark.skipif(not torch.cuda.is_available(), reason="Requires CUDA")
|
||||
def test_video_with_metadata_keeps_device_tensor():
|
||||
"""Device-resident frames (e.g. NVDEC-decoded) pass through as tensors,
|
||||
so a device-side HF processor can consume them without a D2H copy.
|
||||
"""
|
||||
so a device-side HF processor can consume them without a D2H copy."""
|
||||
frames = torch.zeros((4, H, W, 3), dtype=torch.uint8, device="cuda")
|
||||
video, metadata = MultiModalDataParser()._get_video_with_metadata(frames)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user