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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user