[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:
Harry Mellor
2026-09-16 10:57:24 -07:00
committed by GitHub
co-authored by Claude Opus 5
parent 1085b64425
commit 651a88c09a
693 changed files with 2088 additions and 4171 deletions
+3 -6
View File
@@ -73,8 +73,7 @@ def test_mtp_override_extracts_n_predict_from_multimodal_wrapper(
model_type: str, expected_arch: str
) -> None:
"""Verify that multimodal wrapper checkpoints with mtp_num_hidden_layers
in text_config resolve n_predict and architecture correctly.
"""
in text_config resolve n_predict and architecture correctly."""
cfg = SpeculativeConfig.hf_config_override(
_multimodal_wrapper_mtp_config(model_type, mtp_layers=2)
)
@@ -94,8 +93,7 @@ def test_mtp_override_top_level_precedence_over_nested_text_config(
model_type: str, expected_arch: str
) -> None:
"""Verify that an explicit top-level mtp_num_hidden_layers takes precedence
over a nested text_config value.
"""
over a nested text_config value."""
cfg = _multimodal_wrapper_mtp_config(model_type, mtp_layers=2)
cfg.mtp_num_hidden_layers = 3
overridden = SpeculativeConfig.hf_config_override(cfg)
@@ -115,8 +113,7 @@ def test_mtp_override_downloads_real_hf_hub_configs(
model_id: str, expected_arch: str
) -> None:
"""Verify that unmodified real-world checkpoints downloaded via
AutoConfig.from_pretrained resolve n_predict=1 from text_config.
"""
AutoConfig.from_pretrained resolve n_predict=1 from text_config."""
hf_config = AutoConfig.from_pretrained(model_id)
cfg = SpeculativeConfig.hf_config_override(hf_config)
assert cfg.model_type == "qwen3_5_mtp"