From 84e9084be2cc82820825d906fd1985cefca20418 Mon Sep 17 00:00:00 2001 From: Ferry Boender Date: Wed, 28 Aug 2019 08:11:55 +0200 Subject: [PATCH] Re-enable and fix flake8 linting --- build.sla | 2 +- src/runscript.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/build.sla b/build.sla index 8d7fedb..cb1ae2a 100644 --- a/build.sla +++ b/build.sla @@ -18,7 +18,7 @@ test () { # Code quality linting (flake8) cd $ROOTDIR # E402 == module level import not at top of file - #cd src && flake8 --extend-ignore=E402 *.py || true + cd src && flake8 --extend-ignore=E402 *.py || true # Code quality linting (pylint) cd $ROOTDIR diff --git a/src/runscript.py b/src/runscript.py index b04d4e9..8f92247 100644 --- a/src/runscript.py +++ b/src/runscript.py @@ -33,7 +33,9 @@ def from_file(fname): close_fds=True) stdout, stderr = proc.communicate(input) if proc.returncode != 0: - log.error("%s returned non-zero exit code %s", path, proc.returncode) + log.error("%s returned non-zero exit code %s", + path, + proc.returncode) log.error(stderr) raise subprocess.CalledProcessError(proc.returncode, path, stderr) out = stdout