Skip to content

fix: remove unused imports across 21 source files#547

Closed
Kailigithub wants to merge 1 commit into
lsdefine:mainfrom
Kailigithub:fix/lint-f401-unused-imports-cleanup
Closed

fix: remove unused imports across 21 source files#547
Kailigithub wants to merge 1 commit into
lsdefine:mainfrom
Kailigithub:fix/lint-f401-unused-imports-cleanup

Conversation

@Kailigithub
Copy link
Copy Markdown
Contributor

Changes

Remove 40 F401 (unused import) violations across 21 source files, as detected by ruff check --select F401.

Side-effect imports are preserved with # noqa: F401 comments:

  • agentmain.py: readline enables REPL history
  • stapp.py: chatapp_common activates /continue command via monkey-patching

All other removed imports were verified unused (no runtime references found).

Verification

  • ruff check . --select F401 → All checks passed (0 remaining)
  • python3 -m py_compile on all .py files → No syntax errors

Remove 40 F401 (unused import) violations detected by ruff. Side-effect
imports (readline for REPL history, chatapp_common for monkey-patching)
are preserved with noqa comments.

Files affected:
- agentmain.py: preserve readline with noqa
- assets/agent_bbs.py, code_run_header.py
- frontends/conductor.py, dcapp.py, qtapp.py, stapp.py, tui_v3.py,
  tuiapp.py, wechatapp.py, wecomapp.py
- llmcore.py
- memory/compress_session.py, helper.py, ljqCtrl.py, procmem_scanner.py,
  ui_detect.py
- plugins/langfuse_tracing.py
- reflect/agent_team_worker.py, checklist_master.py
- simphtml.py
@lsdefine lsdefine closed this Jun 2, 2026
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.

2 participants