gabriel / muse public
fix patch verify-pack dev
AI Agent gabriel · 157 days ago · Apr 20, 2026 · Diff

fix(verify-pack): replace --format anti-pattern with text-default + --json

- Fix NameError: fmt undefined at line 549 — rename to json_out check - Remove _FORMAT_CHOICES import and test_format_choices (old anti-pattern) - All tests expecting JSON output now pass --json explicitly - Text output is default; --format flag removed entirely - Security tests for invalid --format replaced with unrecognized-flag variants

sha256:2f44291881efab4ca228580cc085daaaf02adea2c299f0511f534cd0b8d0b580 sha
+2 ~42 −4 symbols
sha256:f0dcb9e86b035b9f314bfc6af9ac81121e03f2e586ee6ef211fca9c39bbdb487 snapshot
+2
symbols added
~42
symbols modified
−4
symbols removed
0
dead code introduced
Semantic Changes 48 symbols
~ muse/cli/commands/verify_pack.py .py 1 symbol modified
~ run
~ tests/test_mpack_cmd_verify.py .py 2 symbols added, 4 symbols removed, 41 symbols modified
− test_format_choices method method test_format_choices L158–160
− test_format_error_to_stderr method method test_format_error_to_stderr L533–539
− test_no_traceback_on_invalid_format method method test_no_traceback_on_invalid_format L551–556
− _FORMAT_CHOICES import import _FORMAT_CHOICES L23–23
+ test_no_traceback_on_unrecognized_flag method method test_no_traceback_on_unrecognized_flag L546–551
+ test_unrecognized_flag_to_stderr method method test_unrecognized_flag_to_stderr L528–534
← Older Oldest on dev
All commits
Newer → Latest on dev

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:2f44291881efab4ca228580cc085daaaf02adea2c299f0511f534cd0b8d0b580 --body "your comment"