From d093e3f28df8487fc38f15df3fd7e7d9bf41e2be Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Mon, 5 Dec 2016 18:50:32 -0600 Subject: [PATCH] Run flake8 during CI --- .gitlab-ci.yml | 13 +++++++++++++ sumpy/expansion/local.py | 1 + 2 files changed, 14 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c6ae065a..9d960a6f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -10,6 +10,7 @@ Python 3.5 Titan X: - nvidia-titan-x except: - tags + # Sumpy thus far is poorly parallelized (no workgroup-level parallelism), and # the Kepler has a tendency to hang as a result. # @@ -25,6 +26,7 @@ Python 3.5 Titan X: # - nvidia-k40 # except: # - tags + Python 2.7 POCL: script: - export PY_EXE=python2.7 @@ -37,6 +39,7 @@ Python 2.7 POCL: - pocl except: - tags + Python 3.5 POCL: script: - export PY_EXE=python3.5 @@ -49,6 +52,7 @@ Python 3.5 POCL: - pocl except: - tags + Documentation: script: - EXTRA_INSTALL="numpy mako" @@ -58,3 +62,12 @@ Documentation: - python3.5 only: - master + +Flake8: + script: + - curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/master/prepare-and-run-flake8.sh + - ". ./prepare-and-run-flake8.sh sumpy test" + tags: + - python3.5 + except: + - tags diff --git a/sumpy/expansion/local.py b/sumpy/expansion/local.py index 2bb87b46..6c1fd28a 100644 --- a/sumpy/expansion/local.py +++ b/sumpy/expansion/local.py @@ -33,6 +33,7 @@ from sumpy.expansion import ( class LocalExpansionBase(ExpansionBase): pass + import logging logger = logging.getLogger(__name__) -- GitLab