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:
OG T
2026-03-23 23:51:37 +08:00
parent f78aab8b2a
commit 6f049877fc
68 changed files with 366 additions and 358 deletions

View File

@@ -25,13 +25,10 @@ import hashlib
import hmac
import json
import os
import sys
from datetime import datetime, timezone
from typing import Literal
from datetime import UTC, datetime
import httpx
# =============================================================================
# Configuration
# =============================================================================
@@ -186,7 +183,7 @@ def fire_alert(
dict: API 回應
"""
print_header(f"AWOOOI 實彈射擊 - {alert_type.upper()}")
print(f"執行時間: {datetime.now(timezone.utc).isoformat()}")
print(f"執行時間: {datetime.now(UTC).isoformat()}")
print(f"目標端點: {api_url}{WEBHOOK_ENDPOINT}")
# 取得告警模板
@@ -334,7 +331,7 @@ def main():
print_header("AWOOOI 實彈射擊系統")
print(f"API 端點: {args.api_url}")
print(f"HMAC 配置: {'已設定' if args.hmac_secret else '未設定 (dev mode)'}")
print(f"Shadow Mode: 已啟用 (K8s 操作將被安全攔截)")
print("Shadow Mode: 已啟用 (K8s 操作將被安全攔截)")
if args.all:
# 發射所有類型的告警