gabriel / muse public
feat patch code-check dev
AI Agent gabriel · 159 days ago · Apr 19, 2026 · Diff

feat(code-check): supercharge — -j alias, exit_code, duration_ms, TypedDict, docstring; fix _resolve_commit branch/commit ambiguity

sha256:9d4c0b6743fb608decb5fea8229e9f0685b706fcde8d6c394b4e5143f0cbaaa5 sha
+61 ~3 symbols
sha256:ee5dbee4d087b9bdec010c7593ed096140b1b1bb02217e77b55abc38a1ab0ab1 snapshot
+61
symbols added
~3
symbols modified
0
dead code introduced
Semantic Changes 64 symbols
~ tests/test_code_check_supercharge.py .py 57 symbols added
+ TestAnsiSanitization class class TestAnsiSanitization L320–333
+ test_j_alias_output_no_ansi method method test_j_alias_output_no_ansi L327–329
+ test_json_output_no_ansi_clean method method test_json_output_no_ansi_clean L323–325
+ test_json_output_no_ansi_violations method method test_json_output_no_ansi_violations L331–333
+ TestDocstrings class class TestDocstrings L301–312
+ test_run_docstring_mentions_duration_ms method method test_run_docstring_mentions_duration_ms L309–312
+ test_run_docstring_mentions_exit_code method method test_run_docstring_mentions_exit_code L304–307
+ TestDurationMs class class TestDurationMs L156–189
+ test_duration_ms_with_filter method method test_duration_ms_with_filter L185–189
+ test_duration_ms_with_violations method method test_duration_ms_with_violations L179–183
+ test_j_alias_duration_ms_present method method test_j_alias_duration_ms_present L174–177
+ test_json_duration_ms_is_float method method test_json_duration_ms_is_float L169–172
+ test_json_duration_ms_nonnegative method method test_json_duration_ms_nonnegative L164–167
+ test_json_has_duration_ms method method test_json_has_duration_ms L159–162
+ TestExitCode class class TestExitCode L197–257
+ test_exit_code_mirrors_process_exit_clean method method test_exit_code_mirrors_process_exit_clean L241–244
+ test_exit_code_mirrors_process_exit_strict_violations method method test_exit_code_mirrors_process_exit_strict_violations L246–251
+ test_exit_code_not_hardcoded_zero method method test_exit_code_not_hardcoded_zero L253–257
+ test_exit_code_one_strict_with_errors method method test_exit_code_one_strict_with_errors L234–239
+ test_exit_code_zero_with_violations_no_strict method method test_exit_code_zero_with_violations_no_strict L225–232
+ test_j_alias_exit_code_present method method test_j_alias_exit_code_present L220–223
+ test_json_exit_code_is_int method method test_json_exit_code_is_int L215–218
+ test_json_exit_code_zero_clean_no_strict method method test_json_exit_code_zero_clean_no_strict L209–213
+ test_json_has_exit_code method method test_json_has_exit_code L204–207
+ TestJsonAlias class class TestJsonAlias L108–148
+ test_j_alias_exits_zero_clean method method test_j_alias_exits_zero_clean L111–113
+ test_j_alias_has_has_errors_key method method test_j_alias_has_has_errors_key L124–127
+ test_j_alias_has_violations_key method method test_j_alias_has_violations_key L119–122
+ test_j_alias_same_top_level_keys_as_json_flag method method test_j_alias_same_top_level_keys_as_json_flag L129–136
+ test_j_alias_valid_json method method test_j_alias_valid_json L115–117
+ test_j_alias_violation_count_matches method method test_j_alias_violation_count_matches L138–143
+ test_j_alias_with_strict method method test_j_alias_with_strict L145–148
+ TestPerformance class class TestPerformance L341–357
+ test_duration_ms_is_float_not_int method method test_duration_ms_is_float_not_int L354–357
+ test_j_alias_duration_under_2000ms method method test_j_alias_duration_under_2000ms L349–352
+ test_json_duration_under_2000ms method method test_json_duration_under_2000ms L344–347
+ TestTypedDicts class class TestTypedDicts L265–293
+ test_code_check_output_json_exists method method test_code_check_output_json_exists L268–269
+ test_has_duration_ms_annotation method method test_has_duration_ms_annotation L275–277
+ test_has_exit_code_annotation method method test_has_exit_code_annotation L271–273
+ test_retains_commit_id_annotation method method test_retains_commit_id_annotation L287–289
+ test_retains_has_errors_annotation method method test_retains_has_errors_annotation L283–285
+ test_retains_rules_checked_annotation method method test_retains_rules_checked_annotation L291–293
+ test_retains_violations_annotation method method test_retains_violations_annotation L279–281
+ _complex_func function function _complex_func L72–79
+ _env function function _env L41–42
+ _run function function _run L45–46
+ _stage_commit function function _stage_commit L49–53
+ clean_repo function function clean_repo L62–69
+ CliRunner import import CliRunner L31–31
+ annotations import import annotations L23–23
+ json import import json L25–25
+ pathlib import import pathlib L26–26
+ pytest import import pytest L29–29
+ textwrap import import textwrap L27–27
+ runner variable variable runner L33–33
+ violation_repo function function violation_repo L83–100
~ muse/cli/commands/code_check.py .py 4 symbols added, 3 symbols modified
+ _CodeCheckOutputJson class class _CodeCheckOutputJson L73–97
+ _ViolationDict class class _ViolationDict L66–70
+ TypedDict import import TypedDict L51–51
+ start_timer import import start_timer L57–57
~ run
← 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:9d4c0b6743fb608decb5fea8229e9f0685b706fcde8d6c394b4e5143f0cbaaa5 --body "your comment"