forked from mirrors/thatmattlove-hyperglass
Add debug option to CI pylint check
This commit is contained in:
parent
a7f13de0a4
commit
49d73ffab3
1 changed files with 10 additions and 0 deletions
10
manage.py
10
manage.py
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue