Skip to content

feat(cli): add verbose logging to restyle#936

Merged
RaghavChamadiya merged 2 commits into
repowise-dev:mainfrom
lntutor:feat/restyle-verbose-930
Jul 20, 2026
Merged

feat(cli): add verbose logging to restyle#936
RaghavChamadiya merged 2 commits into
repowise-dev:mainfrom
lntutor:feat/restyle-verbose-930

Conversation

@lntutor

@lntutor lntutor commented Jul 19, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add --verbose / -v to repowise restyle
  • configure CLI logging before resolving the repository or starting provider/pipeline work
  • document the new flag and add focused forwarding coverage

Related Issues

Part of #930 (restyle slice).

Test Plan

  • uv run pytest tests/unit/cli/test_restyle_cmd.py -q (8 passed)
  • uv run pytest tests/unit/ -q (7,593 passed, 1 unrelated baseline failure)
  • uv run ruff check packages/cli/src/repowise/cli/commands/restyle_cmd.py tests/unit/cli/test_restyle_cmd.py
  • uv run ruff format --check packages/cli/src/repowise/cli/commands/restyle_cmd.py tests/unit/cli/test_restyle_cmd.py
  • uv run repowise restyle --help
  • Web build not required (no frontend changes)

The exhaustive unit-suite failure is the unrelated existing mascot assertion test_banner_at_wide_width_stays_compact_with_long_tagline; this change does not touch mascot rendering.

Checklist

  • My code follows the project style
  • I added tests for the new functionality
  • I updated the CLI reference
  • All existing tests pass (see unrelated baseline failure above)

@repowise-bot

repowise-bot Bot commented Jul 19, 2026

Copy link
Copy Markdown

✅ Health: 7.5 (unchanged)

📋 At a glance
2 hotspots touched.

Files & modules (2)
  • packages (1 file)
    • .../commands/restyle_cmd.py
  • tests (1 file)
    • .../cli/test_restyle_cmd.py

🗺️ Change map

flowchart LR
  subgraph PR ["Changed in this PR (1 with dependents)"]
    f_packages_cli_src_repowise_cli_commands_restyle_cmd_py[".../commands/restyle_cmd.py 🔥"]:::changed
  end
  f_packages_cli_src_repowise_cli_main_py[".../cli/main.py"]
  f_packages_cli_src_repowise_cli_commands_restyle_cmd_py --> f_packages_cli_src_repowise_cli_main_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
Loading

Solid arrows: code that imports the changed files (1 direct dependent, from the last indexed snapshot). Dashed: history/tests.

🔎 More signals (1)

🔥 Hotspots touched (2)

  • .../commands/restyle_cmd.py — 3 commits/90d, 1 dependents · primary owner: Raghav Chamadiya (100%)
  • .../cli/test_restyle_cmd.py — 2 commits/90d, 0 dependents · primary owner: Raghav Chamadiya (100%)

📊 Full report · ⭐ Star Repowise · 📥 Install bot · Last updated 2026-07-19 16:44 UTC
Silence on a single PR with [skip repowise] in the title · Per-repo toggle on repowise.dev/settings?tab=bot

@RaghavChamadiya RaghavChamadiya left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@RaghavChamadiya
RaghavChamadiya merged commit 34e58e3 into repowise-dev:main Jul 20, 2026
1 check passed
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