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:
co-authored by
Claude Opus 5
parent
804e5377aa
commit
8c1557a79c
@@ -11,6 +11,7 @@ def add_attention_backend(server_args, attention_config):
|
||||
Args:
|
||||
server_args: List of server arguments to extend in-place.
|
||||
attention_config: Dict with 'backend' key, or None.
|
||||
|
||||
"""
|
||||
if attention_config and "backend" in attention_config:
|
||||
server_args.extend(["--attention-backend", attention_config["backend"]])
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
|
||||
"""
|
||||
Evaluate Transcription API correctness by computing Word Error Rate (WER)
|
||||
"""Evaluate Transcription API correctness by computing Word Error Rate (WER)
|
||||
on a given ASR dataset. When provided, it will also compare the WER against
|
||||
a baseline.
|
||||
This simulates real work usage of the API and makes sure that the frontend and
|
||||
|
||||
@@ -295,7 +295,8 @@ async def test_session_update_invalid_model_returns_error(model_name):
|
||||
@pytest.mark.parametrize("model_name", [MODEL_NAME])
|
||||
async def test_commit_without_session_update_returns_error(model_name):
|
||||
"""Test that committing before validating the model returns an error
|
||||
and does not fall through to processing."""
|
||||
and does not fall through to processing.
|
||||
"""
|
||||
server_args = ["--enforce-eager", "--max-model-len", "2048"]
|
||||
|
||||
if model_name.startswith("mistralai"):
|
||||
|
||||
@@ -18,9 +18,8 @@ _PATCH = "vllm.entrypoints.speech_to_text.base.serving"
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_chunk_offsets_are_cumulative_not_nominal():
|
||||
"""
|
||||
chunk_start_offsets must be cumulative actual chunk lengths, not the old approach of
|
||||
'idx * max_audio_clip_s'. When split_audio places a boundary before the
|
||||
"""chunk_start_offsets must be cumulative actual chunk lengths, not the old approach
|
||||
of 'idx * max_audio_clip_s'. When split_audio places a boundary before the
|
||||
nominal 30 s mark, the old formula drifts; the fixed formula stays exact.
|
||||
"""
|
||||
# Chunks shorter than exactly 30 s, as split_audio produces when a quiet
|
||||
|
||||
+1
-2
@@ -238,8 +238,7 @@ async def test_stream_options(winning_call, whisper_client):
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_sampling_params(mary_had_lamb, whisper_client):
|
||||
"""
|
||||
Compare sampling with params and greedy sampling to assert results
|
||||
"""Compare sampling with params and greedy sampling to assert results
|
||||
are different when extreme sampling parameters values are picked.
|
||||
"""
|
||||
transcription = await whisper_client.audio.transcriptions.create(
|
||||
|
||||
Reference in New Issue
Block a user