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

added debug loggers

This commit is contained in:
checktheroads
2019-06-17 01:20:22 -07:00
parent 658e39456d
commit b28fa9409d

View File

@@ -52,9 +52,11 @@ def pylint_badge(int_only):
from pylint import epylint
pylint_stdout, pylint_stderr = epylint.py_run("hyperglass", return_std=True)
pylint_output = pylint_stdout.getvalue()
logger.debug(pylint_output)
pylint_score = re.search(
r"Your code has been rated at (\d+\.\d+)\/10 \(previous run:.*",
pylint_stdout.getvalue(),
pylint_output,
).group(1)
if not pylint_score == "10.00":
raise RuntimeError(f"Pylint score {pylint_score} not acceptable.")