forked from mirrors/thatmattlove-hyperglass
added debug loggers
This commit is contained in:
parent
658e39456d
commit
b28fa9409d
1 changed files with 3 additions and 1 deletions
|
|
@ -52,9 +52,11 @@ def pylint_badge(int_only):
|
||||||
from pylint import epylint
|
from pylint import epylint
|
||||||
|
|
||||||
pylint_stdout, pylint_stderr = epylint.py_run("hyperglass", return_std=True)
|
pylint_stdout, pylint_stderr = epylint.py_run("hyperglass", return_std=True)
|
||||||
|
pylint_output = pylint_stdout.getvalue()
|
||||||
|
logger.debug(pylint_output)
|
||||||
pylint_score = re.search(
|
pylint_score = re.search(
|
||||||
r"Your code has been rated at (\d+\.\d+)\/10 \(previous run:.*",
|
r"Your code has been rated at (\d+\.\d+)\/10 \(previous run:.*",
|
||||||
pylint_stdout.getvalue(),
|
pylint_output,
|
||||||
).group(1)
|
).group(1)
|
||||||
if not pylint_score == "10.00":
|
if not pylint_score == "10.00":
|
||||||
raise RuntimeError(f"Pylint score {pylint_score} not acceptable.")
|
raise RuntimeError(f"Pylint score {pylint_score} not acceptable.")
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue