summaryrefslogtreecommitdiffstats
path: root/gvnfmadapter/tox.ini
diff options
context:
space:
mode:
authorying.yunlong <ying.yunlong@zte.com.cn>2017-09-29 13:12:52 +0800
committerying.yunlong <ying.yunlong@zte.com.cn>2017-09-29 13:12:52 +0800
commitb73080b0fa5fa14801a5b8429a3f8a8c58165000 (patch)
treef8fa34a51f96cf68b649cb339961bb73f575317f /gvnfmadapter/tox.ini
parent5746f759c51132942ff1c09f84ed055128d4c92f (diff)
Add vfc-gvnfm-driver tox pep8 check setting
Change-Id: Ifeddbff7c8b608404732d7c5771d6eee7a50b5f3 Issue-ID: VFC-479 Signed-off-by: ying.yunlong <ying.yunlong@zte.com.cn>
Diffstat (limited to 'gvnfmadapter/tox.ini')
-rw-r--r--gvnfmadapter/tox.ini14
1 files changed, 13 insertions, 1 deletions
diff --git a/gvnfmadapter/tox.ini b/gvnfmadapter/tox.ini
index 4e62baf..e70d504 100644
--- a/gvnfmadapter/tox.ini
+++ b/gvnfmadapter/tox.ini
@@ -1,7 +1,19 @@
[tox]
-envlist = py27
+envlist = py27,pep8
skipsdist = true
[testenv]
deps = -r{toxinidir}/requirements.txt
commands = coverage run --branch manage.py test
+
+[flake8]
+ignore = E501,E121,W191,E101,W293,E302,E231,E201,E202,F841,E225,E241,E126
+max-complexity = 12
+
+[testenv:pep8]
+deps = flake8
+commands = flake8
+
+[testenv:py27]
+commands =
+ {[testenv]commands} \ No newline at end of file