fix: auto-fix code issues (cron)

- 修复重复导入/字段
- 修复异常处理
- 修复PEP8格式问题
- 添加类型注解
This commit is contained in:
AutoFix Bot
2026-03-02 00:10:40 +08:00
parent 1091029588
commit 6032d5e0ad
2 changed files with 77 additions and 218 deletions

View File

@@ -55,7 +55,7 @@ def check_bare_excepts(content: str, file_path: Path) -> list[dict]:
for i, line in enumerate(lines, 1):
stripped = line.strip()
# 检查 except: 或 except :
# 检查 except Exception: 或 except :
if re.match(r'^except\s*:', stripped):
issues.append({
"line": i,