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:
@@ -34,7 +34,9 @@ from src.api.v1 import agents as agents_v1 # Phase 9.5: Agent Teams API
|
||||
from src.api.v1 import ai as ai_v1
|
||||
from src.api.v1 import approvals as approvals_v1
|
||||
from src.api.v1 import audit_logs as audit_logs_v1
|
||||
from src.api.v1 import auto_repair as auto_repair_v1 # #8: 自動升級決策
|
||||
from src.api.v1 import dashboard as dashboard_v1
|
||||
from src.api.v1 import errors as errors_v1 # #40: Sentry 錯誤 BFF API
|
||||
from src.api.v1 import (
|
||||
github_webhook as github_webhook_v1, # Phase 13.1: GitHub → OpenClaw
|
||||
)
|
||||
@@ -394,6 +396,12 @@ app.include_router(
|
||||
app.include_router(
|
||||
playbooks_v1.router, prefix="/api/v1", tags=["Playbooks"]
|
||||
) # #7: Playbook 萃取
|
||||
app.include_router(
|
||||
auto_repair_v1.router, prefix="/api/v1", tags=["Auto Repair"]
|
||||
) # #8: 自動升級決策
|
||||
app.include_router(
|
||||
errors_v1.router, prefix="/api/v1", tags=["Errors"]
|
||||
) # #40: Sentry 錯誤 BFF API
|
||||
app.include_router(
|
||||
proposals_router.router, tags=["Proposals (Legacy)"]
|
||||
) # Phase 6.4g: lewooogo-brain (舊版)
|
||||
|
||||
Reference in New Issue
Block a user