dovetail tool: flake8 support in tox 97/26397/1
authorMatthewLi <matthew.lijun@huawei.com>
Thu, 22 Dec 2016 01:00:04 +0000 (20:00 -0500)
committerMatthewLi <matthew.lijun@huawei.com>
Thu, 22 Dec 2016 01:00:58 +0000 (20:00 -0500)
JIRA: DOVETAIL-168

Change-Id: I1659e906c8ec810b6e21cc13da4e54a06d5ab80b
Signed-off-by: MatthewLi <matthew.lijun@huawei.com>
dashboard/backend/dovetail/api/api.py
tox.ini

index 0f405f2..4fc97eb 100755 (executable)
@@ -171,6 +171,7 @@ def _get_request_args(**kwargs):
                 args[key] = converter(value)
     return args
 
+
 '''
 @app.teardown_appcontext
 def shutdown_session(exception=None):
diff --git a/tox.ini b/tox.ini
index 606bcf6..5ed0ecc 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -1,7 +1,7 @@
 [tox]
 minversion = 1.6
 skipsdist = True
-envlist = py27
+envlist = py27,pep8
 
 [testenv]
 basepython=python2
@@ -28,4 +28,4 @@ commands = python setup.py testr --coverage \
 [flake8]
 show-source = True
 ignore = E123,E125,H803
-exclude = .tox,dist,docs,.egg,build,.venv,.git
+exclude = .tox,dist,docs,*egg,build,.venv,.git