Re-enable and fix flake8 linting

pull/7/head
Ferry Boender 5 years ago
parent 25286fbdc1
commit 84e9084be2
  1. 2
      build.sla
  2. 4
      src/runscript.py

@ -18,7 +18,7 @@ test () {
# Code quality linting (flake8) # Code quality linting (flake8)
cd $ROOTDIR cd $ROOTDIR
# E402 == module level import not at top of file # 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) # Code quality linting (pylint)
cd $ROOTDIR cd $ROOTDIR

@ -33,7 +33,9 @@ def from_file(fname):
close_fds=True) close_fds=True)
stdout, stderr = proc.communicate(input) stdout, stderr = proc.communicate(input)
if proc.returncode != 0: 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) log.error(stderr)
raise subprocess.CalledProcessError(proc.returncode, path, stderr) raise subprocess.CalledProcessError(proc.returncode, path, stderr)
out = stdout out = stdout

Loading…
Cancel
Save