From 149459e5babdc966cae3e5783c1924dd44313a5b Mon Sep 17 00:00:00 2001 From: Matt Love Date: Mon, 8 Jul 2019 01:55:15 -0700 Subject: [PATCH] Add more CI debugs --- .travis.yml | 1 - manage.py | 4 ++++ requirements.txt | 1 - 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 64b0beb..0986f5e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,7 +13,6 @@ install: before_script: - pip3 uninstall -y -r ./tests/requirements_dev.txt - pip3 install -r ./tests/requirements_dev.txt - - pylint --version - black --check hyperglass - python3 ./manage.py pylint-check -e - python3 ./tests/ci_prepare.py diff --git a/manage.py b/manage.py index b2113c1..9fb2c2c 100755 --- a/manage.py +++ b/manage.py @@ -51,16 +51,20 @@ def pylint_check(num_only, create_badge, errors): import anybadge from pylint import epylint + click.echo("Current directory: " + Path.cwd().resolve()) + click.echo("Pylint Version: " + epylint.py_run("--version", return_std=True)) pylint_stdout, pylint_stderr = epylint.py_run( "hyperglass --verbose --rcfile=.pylintrc", return_std=True ) pylint_output = pylint_stdout.getvalue() + pylint_error = pylint_stderr.getvalue() pylint_score = re.search( r"Your code has been rated at (\d+\.\d+)\/10.*", pylint_output ).group(1) if num_only: click.echo(pylint_score) if errors: + click.echo(pylint_error) click.echo(pylint_output) if not pylint_score == "10.00": raise RuntimeError(f"Pylint score {pylint_score} not acceptable.") diff --git a/requirements.txt b/requirements.txt index 1058453..55068ef 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,7 +3,6 @@ Flask-Limiter==1.0.1 redis==3.2.1 gunicorn==19.9.0 toml==0.10.0 -netaddr==0.7.19 click==6.7 logzero==1.5.0 netmiko==2.3.3