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
+2 -1
View File
@@ -452,7 +452,8 @@ def test_deepseek_v4_image_blocks_become_placeholders():
def test_deepseek_v4_image_sentinel_ids_match_tokenizer():
"""The borrowed sentinel ids must line up with the reserved
``<|place_holder_mm_span_XXXX|>`` tokens in the tokenizer."""
``<|place_holder_mm_span_XXXX|>`` tokens in the tokenizer.
"""
from vllm.models.deepseek_v4.common.mm_preprocess import (
IMAGE_SENTINEL_BASE_ID,
IMAGE_SENTINEL_TOKEN_NAMES,
+2 -1
View File
@@ -51,7 +51,8 @@ def _check_consistency(target: TokenizerLike, expected: TokenizerLike):
def test_thread_pool_tokenizer_pickle(model_id: str):
"""Regression test for issue #45433: the thread-pool tokenizer wrapper
reconstructs through maybe_make_thread_pool on unpickling, which used to
fall off the end and return None."""
fall off the end and return None.
"""
reference_tokenizer = AutoTokenizer.from_pretrained(model_id)
pooled_tokenizer = maybe_make_thread_pool(deepcopy(reference_tokenizer))