[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
+2 -4
View File
@@ -123,8 +123,7 @@ class OpenAIServingModels:
async def init_static_loras(self):
"""Loads all static LoRA modules.
Raises if any fail to load
"""
Raises if any fail to load"""
if self.static_lora_modules is None:
return
for lora in self.static_lora_modules:
@@ -149,8 +148,7 @@ class OpenAIServingModels:
async def show_available_models(self) -> ModelList:
"""Show available models. This includes the base model and all
adapters.
"""
adapters."""
model_list = await self.registry.show_available_models()
lora_cards = [
ModelCard(
+1 -2
View File
@@ -408,8 +408,7 @@ class ParsableContext(ConversationContext):
def need_builtin_tool_call(self) -> bool:
"""Return true if the last message is a builtin tool call
that the request has enabled.
"""
that the request has enabled."""
last_message = self.response_messages[-1]
if last_message.type != "function_call":
return False
+1 -2
View File
@@ -52,8 +52,7 @@ logger = init_logger(__name__)
def _parse_harmony_format_message(chat_msg: dict) -> Message:
"""Reconstruct a Message from Harmony-format dict,
preserving channel, recipient, and content_type.
"""
preserving channel, recipient, and content_type."""
author_dict = chat_msg["author"]
role = author_dict.get("role")
name = author_dict.get("name")
@@ -117,8 +117,7 @@ def serialize_messages(msgs):
class ResponseRawMessageAndToken(OpenAIBaseModel):
"""Class to show the raw message.
If message / tokens diverge, tokens is the source of truth
"""
If message / tokens diverge, tokens is the source of truth"""
message: str
tokens: list[int]