Skip to content

chore(delegate): remove unused sys import and fix bare f-string - #17616

Closed
MorAlekss wants to merge 1 commit into
NousResearch:mainfrom
MorAlekss:chore/fix-ruff-warnings
Closed

chore(delegate): remove unused sys import and fix bare f-string#17616
MorAlekss wants to merge 1 commit into
NousResearch:mainfrom
MorAlekss:chore/fix-ruff-warnings

Conversation

@MorAlekss

Copy link
Copy Markdown
Contributor

Summary

Removes two ruff warnings missed in #17010.


What changed

  • tests/tools/test_delegate.py: removed unused import sys (F401)
  • tools/delegate_tool.py: removed bare f prefix from string without placeholders in _dump_subagent_timeout_diagnostic (F541)

Validation

Both warnings confirmed present on upstream main after #17010 - missed in that cleanup pass.

ruff check --select F401,F541 tools/delegate_tool.py tests/tools/test_delegate.py
# All checks passed!

Part of the ruff cleanup started in #17010.

@alt-glitch alt-glitch added type/refactor Code restructuring, no behavior change tool/delegate Subagent delegation P3 Low — cosmetic, nice to have labels Apr 29, 2026
@MorAlekss
MorAlekss force-pushed the chore/fix-ruff-warnings branch from 574de69 to 109dc33 Compare May 7, 2026 22:08
@teknium1

Copy link
Copy Markdown
Contributor

Thanks for the cleanup. This automated hermes-sweeper review found that both changes are already implemented on current main.

  • tools/delegate_tool.py:1441 already uses "# Subagent timeout diagnostic — issue #14726"; 55e3ee1ab8859316a6e66b5ba2f634479bfcf0d8 applied the repository-wide F541 cleanup.
  • tests/tools/test_delegate.py:12-18 has no import sys; 66827f8947f08686b31b3952e768772423cefbcf removed the unused import during the F401 cleanup.

Closing as implemented on main.

@teknium1 teknium1 closed this Jul 12, 2026
@teknium1 teknium1 added the sweeper:implemented-on-main Sweeper: behavior already present on current main label Jul 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low — cosmetic, nice to have sweeper:implemented-on-main Sweeper: behavior already present on current main tool/delegate Subagent delegation type/refactor Code restructuring, no behavior change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants