1
0
mirror of https://github.com/checktheroads/hyperglass synced 2024-05-11 05:55:08 +00:00

Add debug option to CI pylint check

This commit is contained in:
Matt Love
2019-07-08 01:11:16 -07:00
parent a7f13de0a4
commit 49d73ffab3

View File

@@ -54,6 +54,14 @@ def hg():
default=False,
help="Create Pylint badge",
)
@click.option(
"-e",
"--print-errors",
"errors",
type=bool,
default=False,
help="Print pylint errors",
)
def pylint_check(int_only, create_badge):
try:
import re
@@ -80,6 +88,8 @@ def pylint_check(int_only, create_badge):
)
if int_only:
click.echo(pylint_score)
if errors:
click.echo(pylint_output)
except ImportError as error_exception:
click.secho(f"Import error:\n{error_exception}", fg="red", bold=True)