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

Add more CI debugs

This commit is contained in:
Matt Love
2019-07-08 01:55:15 -07:00
parent 16da7fafae
commit 149459e5ba
3 changed files with 4 additions and 2 deletions

View File

@@ -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

View File

@@ -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.")

View File

@@ -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