diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index bb15d7c9fe93a0f0307edb33c62f76e1f8deec5a..eeb510f2f23a786135c719af081185e3045bade2 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -100,3 +100,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 loopy test"
+  tags:
+  - python3.5
+  except:
+  - tags
diff --git a/setup.cfg b/setup.cfg
index d34ecdd6d469b931929187c36be61a2ba4be25ad..2a573929357f99e48e6248085cc1e7f7be81183c 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -1,3 +1,4 @@
 [flake8]
 ignore = E126,E127,E128,E123,E226,E241,E242,E265,N802,W503,E402
 max-line-length=85
+exclude=loopy/target/c/compyte/ndarray