Update ruff to 0.11.2 (#36962)

* update

* update

* update

---------

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
This commit is contained in:
Yih-Dar
2025-03-25 16:00:11 +01:00
committed by GitHub
parent bc1c90a755
commit c6814b4ee8
152 changed files with 604 additions and 609 deletions

View File

@@ -665,7 +665,7 @@ class Message:
failure_text = ""
for idx, error in enumerate(failures):
new_text = failure_text + f'*{error["line"]}*\n_{error["trace"]}_\n\n'
new_text = failure_text + f"*{error['line']}*\n_{error['trace']}_\n\n"
if len(new_text) > MAX_ERROR_TEXT:
# `failure_text` here has length <= 3000
failure_text = failure_text + "[Truncated]"
@@ -728,7 +728,7 @@ class Message:
if error["line"] in prev_error_lines:
continue
new_text = f'{error["line"]}\n\n'
new_text = f"{error['line']}\n\n"
if new_text not in all_failure_lines:
all_failure_lines[new_text] = []
@@ -794,7 +794,7 @@ class Message:
job_result,
failures,
device,
text=f'Number of failures: {job_result["failed"][device]}',
text=f"Number of failures: {job_result['failed'][device]}",
)
print("Sending the following reply")