fix lint errors

This commit is contained in:
bobo.yang 2025-03-11 14:24:28 +08:00
parent cceb4c1dfb
commit 946d9dcf25
4 changed files with 8 additions and 5 deletions

View File

@ -8,7 +8,7 @@ import requests
ROOT_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
sys.path.append(ROOT_DIR)
from api.utils import (
from api.utils import ( # noqa: E402
OPENAPI_URL,
PROJECT_ID,
SERVER_URL,

View File

@ -293,7 +293,10 @@ class UnitTestsWorkflow:
width = len(str(len(contexts)))
lines.extend(
[
f"{(i + 1):>{width}}. {c.file_path}:{c.range.start.line + 1}-{c.range.end.line + 1}"
(
f"{(i + 1):>{width}}. {c.file_path}:"
f"{c.range.start.line + 1}-{c.range.end.line + 1}"
)
for i, c in enumerate(contexts)
]
)