mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Merge pull request #408 from pre-commit/no_pyterminalsize
Use 80 or min width instead of terminal size
This commit is contained in:
commit
e832ddc57f
4 changed files with 63 additions and 31 deletions
|
|
@ -2,15 +2,10 @@ from __future__ import unicode_literals
|
|||
|
||||
import sys
|
||||
|
||||
from pyterminalsize import get_terminal_size
|
||||
|
||||
from pre_commit import color
|
||||
from pre_commit import five
|
||||
|
||||
|
||||
COLS = get_terminal_size((80, 0)).columns
|
||||
|
||||
|
||||
def get_hook_message(
|
||||
start,
|
||||
postfix='',
|
||||
|
|
@ -18,7 +13,7 @@ def get_hook_message(
|
|||
end_len=0,
|
||||
end_color=None,
|
||||
use_color=None,
|
||||
cols=COLS,
|
||||
cols=80,
|
||||
):
|
||||
"""Prints a message for running a hook.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue