hermes-agent/tests/cli
kshitij 5fba236644
chore: ruff auto-fix PLR6201 resweep — tuple → set in membership tests (#27355)
Six days after #23937 (608 fixes) the codebase had accumulated 241 new
PLR6201 violations. Same mechanical `x in (...)` → `x in {...}` fix,
same zero-risk profile: set lookup is O(1) vs O(n) for tuple and the
two are semantically equivalent for hashable scalar membership tests.

All 241 instances fixed via `ruff check --select PLR6201 --fix
--unsafe-fixes`, zero remaining. Every changed value is a hashable
scalar (str/int/None/enum/signal); no risk of unhashable runtime
errors. No behavior change.

Test plan:
- 119 files changed, +244/-244 (net zero) — exactly one-line edits
- `ruff check` clean afterward
- Compile checks pass on the largest touched files (cli.py, run_agent.py,
  gateway/run.py, gateway/platforms/discord.py, model_tools.py)
- Subset broad test run on tests/gateway/ tests/hermes_cli/ tests/agent/
  tests/tools/: 18187 passed, 59 pre-existing failures (verified against
  origin/main with the same shape — identical failure count, identical
  category — all xdist test-order flakes unrelated to this change)

Follows the same template as PR #23937 ([tracker: #23972](https://github.com/NousResearch/hermes-agent/issues/23972)).
2026-05-17 02:29:41 -07:00
..
__init__.py
…
test_branch_command.py
…
test_busy_input_mode_command.py
…
test_cli_approval_ui.py
…
test_cli_background_status_indicator.py feat(cli): show ▶ N indicator in status bar when /background tasks are running (#27175) 2026-05-16 16:51:29 -07:00
test_cli_background_tui_refresh.py
…
test_cli_bracketed_paste_sanitizer.py
…
test_cli_browser_connect.py
…
test_cli_context_warning.py
…
test_cli_copy_command.py
…
test_cli_extension_hooks.py
…
test_cli_external_editor.py
…
test_cli_file_drop.py
…
test_cli_force_redraw.py fix(cli): clamp scrollback box widths + suppress status bar after resize (#25975) 2026-05-14 15:22:44 -07:00
test_cli_goal_interrupt.py
…
test_cli_image_command.py
…
test_cli_init.py chore: ruff auto-fix PLR6201 resweep — tuple → set in membership tests (#27355) 2026-05-17 02:29:41 -07:00
test_cli_insights_command.py
…
test_cli_interrupt_subagent.py
…
test_cli_light_mode.py test(cli): cover light-mode detection + SkinConfig.get_color remap 2026-05-14 23:23:32 -07:00
test_cli_loading_indicator.py
…
test_cli_markdown_rendering.py
…
test_cli_mcp_config_watch.py
…
test_cli_new_session.py
…
test_cli_prefix_matching.py
…
test_cli_preloaded_skills.py
…
test_cli_provider_resolution.py
…
test_cli_reload_skills.py
…
test_cli_retry.py
…
test_cli_save_config_value.py
…
test_cli_secret_capture.py
…
test_cli_shift_enter_newline.py
…
test_cli_shutdown_memory_messages.py
…
test_cli_skin_integration.py
…
test_cli_status_bar.py revert(cli): drop scrollback box width clamp (#25975), restore full-width borders (#26163) 2026-05-14 23:30:16 -07:00
test_cli_status_command.py
…
test_cli_steer_busy_path.py
…
test_cli_terminal_response_sanitizer.py
…
test_cli_tools_command.py
…
test_cli_user_message_preview.py
…
test_compress_focus.py
…
test_cprint_bg_thread.py fix: preserve ansi output history on resize replay 2026-05-14 15:14:29 -07:00
test_ctrl_enter_newline.py
…
test_cwd_env_respect.py
…
test_destructive_slash_confirm.py
…
test_exit_delete_session.py feat(cli): add /exit --delete flag to remove session on quit (#27101) 2026-05-16 12:51:08 -07:00
test_fast_command.py
…
test_gquota_command.py
…
test_manual_compress.py
…
test_personality_none.py
…
test_prompt_text_input_thread_safety.py
…
test_quick_commands.py
…
test_reasoning_command.py chore: ruff auto-fix PLR6201 resweep — tuple → set in membership tests (#27355) 2026-05-17 02:29:41 -07:00
test_resume_display.py
…
test_save_conversation_location.py
…
test_session_boundary_hooks.py
…
test_stream_delta_think_tag.py
…
test_surrogate_sanitization.py
…
test_tool_progress_scrollback.py
…
test_worktree.py
…
test_worktree_security.py
…