[CI] Ignore ruff D209, rejoin the docstrings it split, and silence incompatible-rule warnings (#57212)
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com> Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
1085b64425
commit
651a88c09a
@@ -1241,8 +1241,7 @@ def test_mla_per_gpu_with_pipeline_parallelism():
|
||||
|
||||
def test_mla_model_metrics_excludes_standard_attention():
|
||||
"""Test that ModelMetrics uses MLAAttentionMetrics, not AttentionMetrics,
|
||||
for DeepSeek MLA models.
|
||||
"""
|
||||
for DeepSeek MLA models."""
|
||||
hf_config = DeepseekV3Config(
|
||||
hidden_size=7168,
|
||||
num_attention_heads=128,
|
||||
|
||||
@@ -45,8 +45,7 @@ def test_engine_log_metrics_ray(
|
||||
max_tokens: int,
|
||||
) -> None:
|
||||
"""Simple smoke test, verifying this can be used without exceptions.
|
||||
Need to start a Ray cluster in order to verify outputs.
|
||||
"""
|
||||
Need to start a Ray cluster in order to verify outputs."""
|
||||
|
||||
@ray.remote(num_gpus=1)
|
||||
class EngineTestActor:
|
||||
@@ -120,8 +119,7 @@ def test_sanitized_opentelemetry_name():
|
||||
def _install_mock_metric(wrapper: RayPrometheusMetric) -> MagicMock:
|
||||
"""Swap the wrapper's underlying Ray metric for a MagicMock while
|
||||
preserving the real metric's ``_tag_keys`` (labels() reads them to
|
||||
validate arity).
|
||||
"""
|
||||
validate arity)."""
|
||||
real_metric = wrapper.metric
|
||||
mock = MagicMock()
|
||||
mock._tag_keys = real_metric._tag_keys
|
||||
@@ -131,8 +129,7 @@ def _install_mock_metric(wrapper: RayPrometheusMetric) -> MagicMock:
|
||||
|
||||
def test_ray_counter_labels_returns_independent_children():
|
||||
"""RayCounterWrapper.labels() must return distinct labeled children that
|
||||
each carry their own tag set.
|
||||
"""
|
||||
each carry their own tag set."""
|
||||
base = RayCounterWrapper(
|
||||
name="vllm_test_finish_reason",
|
||||
documentation="",
|
||||
@@ -152,8 +149,7 @@ def test_ray_counter_labels_returns_independent_children():
|
||||
|
||||
def test_ray_counter_inc_forwards_per_child_tags():
|
||||
""".inc() on a labeled counter must forward that child's tags to the
|
||||
underlying Ray metric (not rely on a shared set_default_tags).
|
||||
"""
|
||||
underlying Ray metric (not rely on a shared set_default_tags)."""
|
||||
wrapper = RayCounterWrapper(
|
||||
name="vllm_test_counter_tag_forward",
|
||||
documentation="",
|
||||
@@ -218,8 +214,7 @@ def test_ray_histogram_labels_returns_independent_children_and_forwards_tags():
|
||||
def test_ray_counter_labels_accepts_non_string_label_values():
|
||||
"""RayPrometheusStatLogger passes ``str(idx)`` for engine indexes; this
|
||||
covers the coercion path for any caller that passes a non-string label
|
||||
value positionally.
|
||||
"""
|
||||
value positionally."""
|
||||
wrapper = RayCounterWrapper(
|
||||
name="vllm_test_nonstr_label",
|
||||
documentation="",
|
||||
@@ -242,8 +237,7 @@ def test_ray_counter_labels_arity_validation():
|
||||
|
||||
def test_unlabeled_inc_carries_replica_id():
|
||||
"""Recording on an unlabeled metric must still pass ReplicaId — it's a
|
||||
declared tag_key and Ray rejects updates that omit any declared key.
|
||||
"""
|
||||
declared tag_key and Ray rejects updates that omit any declared key."""
|
||||
wrapper = RayCounterWrapper(
|
||||
name="vllm_test_unlabeled_replica_id",
|
||||
documentation="",
|
||||
@@ -256,8 +250,7 @@ def test_unlabeled_inc_carries_replica_id():
|
||||
|
||||
def test_double_labels_raises():
|
||||
"""labels() on an already-labeled child should raise, mirroring the
|
||||
prometheus_client contract.
|
||||
"""
|
||||
prometheus_client contract."""
|
||||
wrapper = RayCounterWrapper(
|
||||
name="vllm_test_double_labels",
|
||||
documentation="",
|
||||
|
||||
Reference in New Issue
Block a user