MCPcopy
hub / github.com/pre-commit/pre-commit / _start_msg

Function _start_msg

pre_commit/commands/run.py:41–43  ·  view source on GitHub ↗
(*, start: str, cols: int, end_len: int)

Source from the content-addressed store, hash-verified

39
40
41def _start_msg(*, start: str, cols: int, end_len: int) -> str:
42 dots = '.' * (cols - _len_cjk(start) - end_len - 1)
43 return f'{start}{dots}'
44
45
46def _full_msg(

Callers 2

test_start_msgFunction · 0.90
_run_single_hookFunction · 0.85

Calls 1

_len_cjkFunction · 0.85

Tested by 1

test_start_msgFunction · 0.72