[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:
Harry Mellor
2026-09-16 10:57:24 -07:00
committed by GitHub
co-authored by Claude Opus 5
parent 1085b64425
commit 651a88c09a
693 changed files with 2088 additions and 4171 deletions
+2 -4
View File
@@ -606,8 +606,7 @@ class ShmObjectStoreSenderCache(BaseMultiModalProcessorCache):
@override
def touch_sender_cache_item(self, mm_hash: str) -> None:
"""Touch the item in shared memory cache to prevent eviction.
Increments writer_flag on sender side.
"""
Increments writer_flag on sender side."""
self._shm_cache.touch(mm_hash)
@override
@@ -822,8 +821,7 @@ class ShmObjectStoreReceiverCache(BaseMultiModalReceiverCache):
mm_item: MultiModalKwargsItem | None = None,
) -> None:
"""Touch the item in shared memory cache to prevent eviction.
Increments reader_count on receiver side.
"""
Increments reader_count on receiver side."""
assert mm_item is not None
if "address" in mm_item:
address = cast(int, mm_item["address"].data)
+1 -2
View File
@@ -38,8 +38,7 @@ def rgba_to_rgb(
def _has_transparency(image: Image.Image) -> bool:
"""Detect whether an image carries transparency data (RGBA, LA, PA,
or tRNS chunk in P/L/RGB PNGs).
"""
or tRNS chunk in P/L/RGB PNGs)."""
if image.mode in ("RGBA", "LA", "PA"):
return True
return "transparency" in getattr(image, "info", {})
+1 -2
View File
@@ -295,8 +295,7 @@ def _is_dense(t: torch.Tensor) -> bool:
"""Whether `t`'s elements fill a contiguous storage range, possibly
permuted (e.g. a transposed matrix). Such layouts can be copied with
pitched cudaMemcpy2D/3DAsync directly from pinned memory, whereas
gapped layouts (e.g. strided slices) stage through a pageable temp.
"""
gapped layouts (e.g. strided slices) stage through a pageable temp."""
if not t.is_contiguous():
expected_stride = 1
for stride, size in sorted(zip(t.stride(), t.shape)):
+1 -2
View File
@@ -220,8 +220,7 @@ def strip_covered_mm_data(
so the workers never consume the payload fields. M-RoPE models keep
CPU-side metadata fields used to compute positions. SHM address items
are also kept so workers can balance the sender's reference count. The
scheduler-side ``Request`` keeps the full features.
"""
scheduler-side ``Request`` keeps the full features."""
if not mm_features or num_computed_tokens == 0:
return mm_features