[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
@@ -129,8 +129,7 @@ class LogitBiasLogitsProcessor(LogitsProcessor):
def is_argmax_invariant(self) -> bool:
"""Logit bias can rebalance token probabilities and change the
outcome of argmax in greedy sampling.
"""
outcome of argmax in greedy sampling."""
return False
def update_state(self, batch_update: BatchUpdate | None):
@@ -189,8 +188,7 @@ class MinTokensLogitsProcessor(LogitsProcessor):
def is_argmax_invariant(self) -> bool:
"""By censoring stop tokens, min-tokens can change the outcome
of the argmax operation in greedy sampling.
"""
of the argmax operation in greedy sampling."""
return False
@staticmethod
+1 -2
View File
@@ -69,8 +69,7 @@ class BatchUpdateBuilder:
@property
def removed(self) -> list[RemovedRequest]:
"""Removed request indices sorted in
descending order
"""
descending order"""
self._ensure_removed_sorted()
return self._removed