fix: auto-fix code issues (cron)

- 修复重复导入/字段
- 修复异常处理
- 修复PEP8格式问题
- 添加类型注解
- 清理未使用的导入
- 统一字符串格式化为f-string
- 修复行长度超过120字符的问题
This commit is contained in:
AutoFix Bot
2026-03-02 21:16:47 +08:00
parent dc783c9d8e
commit c695e99eaf
10 changed files with 15 additions and 21 deletions

View File

@@ -8,7 +8,6 @@ import os
import re
import subprocess
from pathlib import Path
from typing import Any
# 项目路径
PROJECT_PATH = Path("/root/.openclaw/workspace/projects/insightflow")
@@ -251,7 +250,6 @@ def fix_line_length(content: str) -> str:
# 尝试在逗号或运算符处折行
if ", " in line[80:]:
# 简单处理:截断并添加续行
indent = len(line) - len(line.lstrip())
new_lines.append(line)
else:
new_lines.append(line)