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
+4 -1
View File
@@ -101,8 +101,8 @@ def detect_token_suffix(tokenizer: TokenizerLike) -> str:
RuntimeError: The tokenizer declares the structural tokens through
``model_specific_special_tokens``, which transformers 5 no longer
round-trips.
"""
"""
import transformers
if int(transformers.__version__.split(".")[0]) >= 5:
@@ -611,6 +611,7 @@ class HYV4ToolExtractor:
Returns:
A streaming delta carrying content and/or the tool calls drained
from the buffer, or None when nothing can be emitted yet.
"""
content_delta: str | None = None
tool_calls: list[StreamToolCall] = []
@@ -1011,6 +1012,7 @@ class HYV4ToolParser(ToolParser):
Returns:
The structural tag, or None when structural tagging does not apply.
"""
if not envs.VLLM_ENFORCE_STRICT_TOOL_CALLING:
return None
@@ -1070,6 +1072,7 @@ class HYV4ToolParser(ToolParser):
Returns:
True when the streaming parser must use the string-marker path.
"""
structured_outputs = getattr(request, "structured_outputs", None)
return (