X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=checks.py;fp=checks.py;h=cde601a6917c22b719aa33299f593451ae95c896;hb=533930e4f25494316ea7bc06bcc84b452b2fa529;hp=6f508eb7d970be01c6767705a6568b28897ccbd5;hpb=5f9c956c157b106014e7b5104a799c4fb818dba1;p=vvp%2Fvalidation-scripts.git diff --git a/checks.py b/checks.py index 6f508eb..cde601a 100644 --- a/checks.py +++ b/checks.py @@ -167,9 +167,12 @@ def check_non_testable_requirements_are_not_mapped(): def check_flake8_passes(): - result = subprocess.run(["flake8", "."], encoding="utf-8", - stdout=subprocess.PIPE, - stderr=subprocess.PIPE) + result = subprocess.run( + ["flake8", "."], + encoding="utf-8", + stdout=subprocess.PIPE, + stderr=subprocess.PIPE, + ) msgs = result.stdout.split("\n") if result.returncode != 0 else [] return ["flake8 errors detected:"] + [f" {e}" for e in msgs] if msgs else []