feat(cli): add verbose logging to health#943
Conversation
|
✅ Health: 7.5 (unchanged) 📋 At a glance 🗺️ Change map flowchart LR
subgraph PR ["Changed in this PR (1 with dependents)"]
f_packages_cli_src_repowise_cli_commands_health_cmd_command_py[".../health_cmd/command.py 🔥"]:::changed
end
f_packages_cli_src_repowise_cli_commands_health_cmd___init___py[".../health_cmd/__init__.py"]
f_packages_cli_src_repowise_cli_commands_health_cmd_command_py --> f_packages_cli_src_repowise_cli_commands_health_cmd___init___py
classDef changed fill:#dbeafe,stroke:#1d4ed8,color:#1e3a5f
classDef warn fill:#fef3c7,stroke:#b45309,color:#78350f
classDef guard fill:#dcfce7,stroke:#15803d,color:#14532d
Solid arrows: code that imports the changed files (1 direct dependent, from the last indexed snapshot). Dashed: history/tests. 🩹 Review priority (files here with the most recent bug-fix history — defects cluster, so review these first)
🔎 More signals (1)🔥 Hotspot touched (1)
📊 Full report · ⭐ Star Repowise · 📥 Install bot · Last updated 2026-07-19 20:13 UTC |
RaghavChamadiya
left a comment
There was a problem hiding this comment.
Approving. Docs updated, the test drives the real Click parser, and it asserts ordering rather than just arrival, which is the part that actually matters here.
Calling out one thing for anyone reading this later: configure_cli_logging lands before the existing silence_logs_for_machine_output(), so repowise health --format json | jq stays pipe-safe under -v. Reversing those two would let structlog into stdout and break the JSON. Good catch.
Part of #930
Summary
--verbose/-vtorepowise healthTests
uv run pytest -q tests/unit/cli/test_health_cmd_logging.py tests/unit/cli/test_analysis_cmds_include_submodules.py(6 passed)uv run pytest -q tests/unit/cli(803 passed, 1 pre-existing mascot assertion failure reproduced on cleanorigin/main)--follow-imports=skip)Repository-wide lint/type checking currently reports unrelated baseline issues, including existing Ruff violations and two mypy errors in
health_cmd/refactoring_targets.py.