fix(api): 修復全部 lint 錯誤 (ruff --fix)

- Import sorting (I001)
- Unused imports (F401)
- f-string without placeholders (F541)
- Loop variable unused (B007)
- zip() strict parameter (B905)
- Exception chaining (B904)
- collections.abc imports (UP035)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
OG T
2026-03-26 16:06:20 +08:00
parent e26ea526b1
commit 30153496d1
38 changed files with 3041 additions and 101 deletions

View File

@@ -40,7 +40,6 @@ sys.path.insert(0, str(Path(__file__).parent.parent / "src"))
import httpx
# =============================================================================
# Config
# =============================================================================
@@ -318,7 +317,7 @@ class E2EVerification:
found = any(a.get("id") == self.approval_id for a in approvals)
if found:
print_success(f"Approval 在 pending 列表中")
print_success("Approval 在 pending 列表中")
return True
else:
print_warn("Approval 不在 pending 列表 (可能已處理)")
@@ -356,7 +355,7 @@ class E2EVerification:
# Phase 18.2.2: 動態簽署
for i in range(min(remaining, len(SIGNER_POOL))):
signer = SIGNER_POOL[i]
print_info(f"Signing with", signer["name"])
print_info("Signing with", signer["name"])
async with httpx.AsyncClient(timeout=TIMEOUT) as client:
response = await client.post(