Module ImportFrom alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore AttributeLoad Call NameLoad TupleLoad Num Num attr FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Str NameLoad Num NameLoad NameLoad NameLoad body Expr Str If CompareEq Call NameLoad NameLoad Call NameLoad NameLoad body Raise Call NameLoad Str If BoolOpAnd CompareIsNot NameLoad NameLoad BoolOpOr CompareIs NameLoad NameLoad CompareIs NameLoad NameLoad body Raise Call NameLoad Str If NameLoad body Return BinOpAdd NameLoad BinOpMult Str BinOpSub BinOpSub BinOpSub NameLoad Call NameLoad NameLoad NameLoad Num orelse Return Call AttributeLoad Str attr NameLoad BinOpMult Str BinOpSub BinOpSub BinOpSub BinOpSub NameLoad Call NameLoad NameLoad Call NameLoad NameLoad Call NameLoad NameLoad Num NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list Assign NameStore Call NameLoad AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list
N/A __future__ unicode_literals N/A sys pyterminalsize get_terminal_size pre_commit color pre_commit five N/A COLS N/A N/A get_terminal_size N/A 80 0 columns get_hook_message N/A N/A start postfix end_msg end_len end_color use_color cols N/A None 0 None None COLS N/A N/A Prints a message for running a hook.

    This currently supports three approaches:

    # Print `start` followed by dots, leaving 6 characters at the end
    >>> print_hook_message('start', end_len=6)
    start...............................................................

    # Print `start` followed by dots with the end message colored if coloring
    # is specified and a newline afterwards
    >>> print_hook_message(
        'start',
        end_msg='end',
        end_color=color.RED,
        use_color=True,
    )
    start...................................................................end

    # Print `start` followed by dots, followed by the `postfix` message
    # uncolored, followed by the `end_msg` colored if specified and a newline
    # afterwards
    >>> print_hook_message(
        'start',
        postfix='postfix ',
        end_msg='end',
        end_color=color.RED,
        use_color=True,
    )
    start...........................................................postfix end
     N/A N/A N/A bool end_msg N/A bool end_len N/A N/A N/A ValueError Expected one of (`end_msg`, `end_len`) N/A N/A N/A end_msg None N/A N/A end_color None N/A use_color None N/A N/A N/A ValueError `end_color` and `use_color` are required with `end_msg` N/A end_len N/A N/A N/A start N/A . N/A N/A N/A cols N/A len start end_len 1 N/A N/A N/A N/A {0}{1}{2}{3}
 format start N/A . N/A N/A N/A N/A cols N/A len start N/A len postfix N/A len end_msg 1 postfix N/A N/A color format_color end_msg end_color use_color N/A N/A stdout_byte_stream N/A getattr N/A sys stdout buffer N/A sys stdout sys_stdout_write_wrapper N/A N/A s stream N/A stdout_byte_stream N/A N/A N/A N/A stream write N/A N/A five to_bytes s N/A