MCPcopy Index your code
hub / github.com/pre-commit/pre-commit / _full_msg

Function _full_msg

pre_commit/commands/run.py:46–57  ·  view source on GitHub ↗
(
        *,
        start: str,
        cols: int,
        end_msg: str,
        end_color: str,
        use_color: bool,
        postfix: str = '',
)

Source from the content-addressed store, hash-verified

44
45
46def _full_msg(
47 *,
48 start: str,
49 cols: int,
50 end_msg: str,
51 end_color: str,
52 use_color: bool,
53 postfix: str = '',
54) -> str:
55 dots = '.' * (cols - _len_cjk(start) - len(postfix) - len(end_msg) - 1)
56 end = color.format_color(end_msg, end_color, use_color)
57 return f'{start}{dots}{postfix}{end}\n'
58
59
60def filter_by_include_exclude(

Callers 6

test_full_msgFunction · 0.90
test_full_msg_with_cjkFunction · 0.90
test_full_msg_with_colorFunction · 0.90
_run_single_hookFunction · 0.85

Calls 1

_len_cjkFunction · 0.85

Tested by 5

test_full_msgFunction · 0.72
test_full_msg_with_cjkFunction · 0.72
test_full_msg_with_colorFunction · 0.72