From 79a23ee90510b0fb0ad43b367b67bc06a36cd1e5 Mon Sep 17 00:00:00 2001
From: Bach Dániel <bd@ik.bme.hu>
Date: Mon, 16 Mar 2015 15:14:41 +0100
Subject: [PATCH] fabfile: add flake8

Closes #395
---
 circle/fabfile.py | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/circle/fabfile.py b/circle/fabfile.py
index 572f570..21cfe1f 100755
--- a/circle/fabfile.py
+++ b/circle/fabfile.py
@@ -64,6 +64,14 @@ def bower(component=None):
 
 
 @roles('portal')
+def flake8():
+    "Run portal tests"
+    with _workon("circle"), cd("~/circle/circle"):
+        run("flake8 . --exclude=migrations,bower_components,"
+            "south_migrations,static_collected --max-complexity 12")
+
+
+@roles('portal')
 def migrate():
     "Run db migrations"
     with _workon("circle"), cd("~/circle/circle"):
--
libgit2 0.26.0