fix(lint): ruff auto-fix + lewooogo-core src 加入 git
- Python: ruff --fix 修復 280 個 lint 錯誤 - lewooogo-core: src/ 目錄未追蹤,導致 CI eslint 失敗 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -15,7 +15,6 @@ Phase 5 E2E 點火測試 - OpenClaw 全鏈路驗證
|
||||
"""
|
||||
|
||||
import asyncio
|
||||
import json
|
||||
import sys
|
||||
from datetime import datetime
|
||||
|
||||
@@ -94,12 +93,10 @@ Traceback (most recent call last):
|
||||
print_step(2, "安全攔截器 (Security Interceptor)")
|
||||
|
||||
try:
|
||||
from src.core.config import settings
|
||||
from src.services.security_interceptor import (
|
||||
TelegramSecurityInterceptor,
|
||||
UserNotWhitelistedError,
|
||||
NonceReplayError,
|
||||
)
|
||||
from src.core.config import settings
|
||||
|
||||
interceptor = TelegramSecurityInterceptor()
|
||||
|
||||
@@ -139,7 +136,7 @@ Traceback (most recent call last):
|
||||
print_step(3, "Telegram Gateway (SOUL.md 訊息格式)")
|
||||
|
||||
try:
|
||||
from src.services.telegram_gateway import TelegramMessage, RISK_EMOJI_MAP
|
||||
from src.services.telegram_gateway import RISK_EMOJI_MAP, TelegramMessage
|
||||
|
||||
# 建立測試訊息
|
||||
message = TelegramMessage(
|
||||
@@ -180,7 +177,7 @@ Traceback (most recent call last):
|
||||
print_step(4, "OpenClaw AI 模組載入")
|
||||
|
||||
try:
|
||||
from src.services.openclaw import get_openclaw, OpenClawService
|
||||
from src.services.openclaw import OpenClawService, get_openclaw
|
||||
|
||||
openclaw = get_openclaw()
|
||||
assert isinstance(openclaw, OpenClawService)
|
||||
|
||||
Reference in New Issue
Block a user