supercharge(hotspots): -j alias, exit_code, duration_ms, TypedDict, docstring
- Add from typing import Any, TypedDict - Add from muse.core.timing import start_timer - Add _HotspotsOutputJson TypedDict with from_ref, to_ref, commits_analysed, truncated, filters, hotspots, exit_code, duration_ms annotations - Add -j alias for --json - Add elapsed = start_timer() at top of run() - Emit exit_code=0 and duration_ms=elapsed() in JSON output - Expand run() docstring with JSON envelope section - Add 53-test supercharge suite (first hotspots tests ever written)
sha256:3ceb3e599bfea9b160eebaa8131b366869f850ff7957600c1a1ca6772682a6f4
sha
+75
~2
symbols
sha256:eb5c1c8333bcc75d75ea0f8d264e3bee176ab745fa6b8fe4b4b5a350decad435
snapshot
+75
symbols added
~2
symbols modified
0
dead code introduced
Semantic Changes
77 symbols
+
test_run_docstring_mentions_duration_ms
method
method test_run_docstring_mentions_duration_ms L339–342
+
test_run_docstring_mentions_exit_code
method
method test_run_docstring_mentions_exit_code L334–337
+
test_j_alias_has_commits_analysed_key
method
method test_j_alias_has_commits_analysed_key L151–153
+
test_j_alias_hotspot_count_matches_json_flag
method
method test_j_alias_hotspot_count_matches_json_flag L170–177
+
test_j_alias_same_top_level_keys_as_json_flag
method
method test_j_alias_same_top_level_keys_as_json_flag L159–168
+
test_hotspots_output_json_typeddict_exists
method
method test_hotspots_output_json_typeddict_exists L290–291
+
test_retains_commits_analysed_annotation
method
method test_retains_commits_analysed_annotation L305–307
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:3ceb3e599bfea9b160eebaa8131b366869f850ff7957600c1a1ca6772682a6f4 --body "your comment"
No comments yet. Be the first to start the discussion.