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
@@ -87,7 +87,7 @@ def _run_test(
*,
dtype: str,
) -> None:
"""SET PYTHONPATH"""
"""SET PYTHONPATH."""
# NOTE: take care of the order. run vLLM first, and then run HF.
# vLLM needs a fresh new process without cuda initialization.
# if we run HF first, the cuda initialization will be done and it
@@ -108,8 +108,7 @@ def _normalize_image(image_val: str) -> str:
def create_score_multimodal_param(
content_parts: list[dict],
) -> list[ScoreMultiModalParam]:
"""
Create a ScoreMultiModalParam from a list of content dictionaries.
"""Create a ScoreMultiModalParam from a list of content dictionaries.
Each dict supports the following formats:
- Text: {'text': 'content'}
@@ -257,7 +256,7 @@ def test_model_text_image(
model: str,
dtype: str,
) -> None:
"""Visual Documents Reranking"""
"""Visual Documents Reranking."""
_run_test(
hf_runner,
vllm_runner,
@@ -280,7 +279,7 @@ def test_model_text_text(
model: str,
dtype: str,
) -> None:
"""Textual Documents Reranking"""
"""Textual Documents Reranking."""
_run_test(
hf_runner,
vllm_runner,
@@ -303,7 +302,7 @@ def test_model_image_text(
model: str,
dtype: str,
) -> None:
"""Image Querying for Textual Documents"""
"""Image Querying for Textual Documents."""
_run_test(
hf_runner,
vllm_runner,
@@ -326,7 +325,7 @@ def test_model_image_image(
model: str,
dtype: str,
) -> None:
"""Image Querying for Image Documents"""
"""Image Querying for Image Documents."""
_run_test(
hf_runner,
vllm_runner,
@@ -349,7 +348,7 @@ def test_model_text_mixed_documents(
model: str,
dtype: str,
) -> None:
"""Text Query for Mixed Text and Image Documents"""
"""Text Query for Mixed Text and Image Documents."""
_run_test(
hf_runner,
vllm_runner,
@@ -1,7 +1,6 @@
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
"""
Tests for the LlamaNemotronVL model family:
"""Tests for the LlamaNemotronVL model family:
- nvidia/llama-nemotron-embed-vl-1b-v2 (LlamaNemotronVLForCausalLM / embed)
- nvidia/llama-nemotron-rerank-vl-1b-v2
(LlamaNemotronVLForSequenceClassification / rerank)