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:
@@ -18,15 +18,13 @@ Phase 5 E2E 網路層測試 - HMAC 安全驗證 + Nonce 防重放
|
||||
import hashlib
|
||||
import hmac
|
||||
import json
|
||||
import pytest
|
||||
from unittest.mock import patch
|
||||
|
||||
import httpx
|
||||
import pytest
|
||||
from httpx import ASGITransport, AsyncClient
|
||||
|
||||
from src.main import app
|
||||
from src.core.config import settings
|
||||
|
||||
from src.main import app
|
||||
|
||||
# =============================================================================
|
||||
# Helper Functions
|
||||
@@ -285,8 +283,8 @@ class TestTelegramSecurityInterceptor:
|
||||
同一個 Nonce 第二次使用應該被拒絕
|
||||
"""
|
||||
from src.services.security_interceptor import (
|
||||
TelegramSecurityInterceptor,
|
||||
NonceReplayError,
|
||||
TelegramSecurityInterceptor,
|
||||
)
|
||||
|
||||
interceptor = TelegramSecurityInterceptor()
|
||||
@@ -432,7 +430,7 @@ class TestShadowMode:
|
||||
|
||||
預期: 執行操作時僅記錄,不真正執行
|
||||
"""
|
||||
from src.services.executor import ActionExecutor, OperationType
|
||||
from src.services.executor import ActionExecutor
|
||||
|
||||
executor = ActionExecutor()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user