fix(ci): Resolve Python and TypeScript lint errors

- Fix 35 Python ruff errors (B904, F841, E722, E741, B007, B008)
- Add eslint config for lewooogo-core package
- Update pyproject.toml to new ruff lint config format
- Relax frontend eslint rules to warnings for unused vars
- Allow console.* for debugging (TODO: unified logger)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
OG T
2026-03-24 09:20:56 +08:00
parent e6197c8569
commit 4f1c8ae473
25 changed files with 79 additions and 61 deletions

View File

@@ -235,7 +235,7 @@ async def approve_approval(
"role": e.role,
"required_roles": e.required_roles,
},
)
) from e
except DuplicateSignatureError as e:
raise HTTPException(
@@ -244,13 +244,13 @@ async def approve_approval(
"error": "Duplicate signature",
"user_id": e.user_id,
},
)
) from e
except ApprovalAlreadyDecidedError as e:
raise HTTPException(
status_code=400,
detail={"error": str(e)},
)
) from e
except TOCTOUConflictError as e:
# ⚠️ TOCTOU 衝突 - 資源狀態已改變
@@ -262,7 +262,7 @@ async def approve_approval(
"failed_checks": e.failed_checks,
"signatures_cleared": True,
},
)
) from e
@router.post("/{approval_id}/reject", response_model=Approval)