[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
+1 -2
View File
@@ -284,8 +284,7 @@ class Executor(ABC):
@abstractmethod
def check_health(self) -> None:
"""Checks if the executor is healthy. If not, it should raise an
exception.
"""
exception."""
raise NotImplementedError
def shutdown(self) -> None:
+4 -8
View File
@@ -384,8 +384,7 @@ class MultiprocExecutor(Executor):
ec_output_aggregator: ECOutputAggregator | None = None,
) -> Any:
"""Returns single result if unique_reply_rank and/or an output
aggregator is provided, otherwise list.
"""
aggregator is provided, otherwise list."""
assert self.rpc_broadcast_mq is not None, (
"collective_rpc should not be called on follower node"
)
@@ -452,8 +451,7 @@ class MultiprocExecutor(Executor):
def _ensure_worker_termination(worker_procs: list[BaseProcess]):
"""Ensure that all worker processes are terminated. Assumes workers have
received termination requests. Waits for processing, then sends
termination and kill signals if needed.
"""
termination and kill signals if needed."""
def wait_for_termination(procs, timeout):
if not time:
@@ -854,8 +852,7 @@ class WorkerProc:
@staticmethod
def worker_main(*args, **kwargs):
"""Worker initialization and execution loops.
This runs a background process
"""
This runs a background process"""
# Signal handler used for graceful termination.
# SystemExit exception is only raised once to allow this and worker
# processes to terminate without error
@@ -1099,8 +1096,7 @@ class WorkerProc:
def set_multiprocessing_worker_envs(local_world_size: int = 1):
"""Set up environment variables that should be used when there are workers
in a multiprocessing environment. This should be called by the parent
process before worker processes are created
"""
process before worker processes are created"""
_maybe_force_spawn()
if current_platform.is_cpu() or "OMP_NUM_THREADS" in os.environ:
+1 -2
View File
@@ -55,8 +55,7 @@ try:
class RayWorkerWrapper(WorkerWrapperBase):
"""Ray wrapper for vllm.worker.Worker, allowing Worker to be
lazily initialized after Ray sets CUDA_VISIBLE_DEVICES.
"""
lazily initialized after Ray sets CUDA_VISIBLE_DEVICES."""
def __init__(self, *args, **kwargs) -> None:
super().__init__(*args, **kwargs)