WIP: progress dots

Based on @chriskuehl's branch here:
- f7213054ac
This commit is contained in:
Anthony Sottile 2019-10-19 13:30:02 -07:00
parent 4bd6529c05
commit f21257cdba
15 changed files with 69 additions and 31 deletions

View file

@ -38,7 +38,7 @@ from pre_commit.languages import system
# version - A version specified in the hook configuration or 'default'.
# """
#
# def run_hook(hook, file_args, color):
# def run_hook(hook, file_args, color, progress):
# """Runs a hook and returns the returncode and output of running that
# hook.
#
@ -46,6 +46,7 @@ from pre_commit.languages import system
# hook - `Hook`
# file_args - The files to be run
# color - whether the hook should be given a pty (when supported)
# progress - report progress as a float percentage
#
# Returns:
# (returncode, output)