Skip to content

fix: 清理所有模块未使用导入 — ruff F401 清零 (Issue #31)#32

Merged
urika merged 1 commit into
mainfrom
fix/issue-31-unused-imports
May 30, 2026
Merged

fix: 清理所有模块未使用导入 — ruff F401 清零 (Issue #31)#32
urika merged 1 commit into
mainfrom
fix/issue-31-unused-imports

Conversation

@urika

@urika urika commented May 30, 2026

Copy link
Copy Markdown
Owner

Summary

Closes #31 (Subtask 1)

  • 76 F401 errors → 0: ruff check --select F401 agent_go/ now passes clean
  • 10 files modified: removed 27 unused stdlib/typing imports
  • Each file now only imports what it actually uses

Changes by file

File Removed
api.py sys, os, subprocess, threading, shlex, signal, ThreadPoolExecutor, as_completed
cli.py re, threading, shlex, signal, ThreadPoolExecutor, as_completed, load_skill, render_skill_for_execution
config.py sys, subprocess, re, time, threading, shlex, signal, ThreadPoolExecutor, as_completed
executor.py sys, json, threading, signal, logging, ThreadPoolExecutor, as_completed, Path, datetime, _safe_append_to_file, _slugify
git_utils.py sys, os, json, re, time, threading, shlex, signal, ThreadPoolExecutor, as_completed, datetime
pipeline.py re, time, shlex, datetime
subtask.py sys, os, shlex, signal, ThreadPoolExecutor, as_completed, Any
ui.py subprocess, json, re, time, threading, shlex, signal, ThreadPoolExecutor, as_completed, datetime
utils.py sys, os, threading, signal, ThreadPoolExecutor, as_completed, Any
workflow_gen.py Any

Verification

  • ruff check --select F401 agent_go/: 0 errors
  • pytest tests/: 277 passed

🤖 Generated with Claude Code
Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com

- 10 files modified, 27 unused imports removed
- ruff check --select F401: 76 errors → 0 errors
- 每个文件仅保留实际使用的 stdlib/typing 导入
- 测试: 277 passed

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@urika urika merged commit 818d9fb into main May 30, 2026
1 check failed
@urika urika deleted the fix/issue-31-unused-imports branch May 30, 2026 05:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Code Quality] 代码清理三合一 — import 统一、未使用导入清理、输出抽象层

1 participant