Add pydocstyle to the ruff rules (#52136)

Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Signed-off-by: Harry Mellor <hej.mellor@gmail.com>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Harry Mellor
2026-09-16 16:44:29 +00:00
committed by GitHub
co-authored by Claude Opus 5
parent 804e5377aa
commit 8c1557a79c
2002 changed files with 15024 additions and 14269 deletions
+6 -3
View File
@@ -77,7 +77,8 @@ def compute_plan_fingerprint(
def _plan_path(fingerprint: str) -> str:
"""Plans are regenerable derived state, so they live under the standard
vLLM cache root (like the torch.compile cache) and relocate with
``VLLM_CACHE_ROOT`` instead of needing a location knob of their own."""
``VLLM_CACHE_ROOT`` instead of needing a location knob of their own.
"""
# VLLM_CACHE_ROOT is already user-expanded by envs.py.
return os.path.join(
envs.VLLM_CACHE_ROOT, "startup_plan", f"startup_plan_{fingerprint}.json"
@@ -134,7 +135,8 @@ def _applicable_kv_cache_memory_bytes(
def maybe_apply_startup_plan(worker: "Worker") -> None:
"""If enabled and ``--kv-cache-memory`` was not set explicitly, apply a
persisted plan by setting ``worker.cache_config.kv_cache_memory_bytes``.
No-op unless ``VLLM_ENABLE_STARTUP_PLAN=1``."""
No-op unless ``VLLM_ENABLE_STARTUP_PLAN=1``.
"""
if (
not envs.VLLM_ENABLE_STARTUP_PLAN
or worker.cache_config.kv_cache_memory_bytes is not None
@@ -167,7 +169,8 @@ def maybe_apply_startup_plan(worker: "Worker") -> None:
def maybe_save_startup_plan(worker: "Worker", kv_cache_memory_bytes: int) -> None:
"""Atomically persist this boot's profiling result for future boots.
No-op unless ``VLLM_ENABLE_STARTUP_PLAN=1``; failures are logged,
never raised."""
never raised.
"""
if not envs.VLLM_ENABLE_STARTUP_PLAN:
return
fingerprint = compute_plan_fingerprint(