[ovs-dev,05/55] python: Add pep8 test environment.
diff mbox

Message ID 1450730875-18083-6-git-send-email-russell@ovn.org
State Deferred
Headers show

Commit Message

Russell Bryant Dec. 21, 2015, 8:47 p.m. UTC
PEP8 is the Python formatting standard.  This test environment catches
cases where the code deviates from this standard.  We exclude all of the
rules currently violated so we can start with a passing configuration.
They can be removed over time when they get cleaned up.

Signed-off-by: Russell Bryant <russell@ovn.org>
 python/test-requirements.txt |  1 +
 python/tox.ini               | 11 +++++++++--
 2 files changed, 10 insertions(+), 2 deletions(-)

diff mbox

diff --git a/python/test-requirements.txt b/python/test-requirements.txt
index eae9d4f..8ee182a 100644
--- a/python/test-requirements.txt
+++ b/python/test-requirements.txt
@@ -1,2 +1,3 @@ 
 # test dependencies
diff --git a/python/tox.ini b/python/tox.ini
index 06b2e2a..9f5947b 100644
--- a/python/tox.ini
+++ b/python/tox.ini
@@ -1,13 +1,20 @@ 
 # Tox (http://tox.testrun.org/) is a tool for running tests
 # in multiple virtualenvs. This configuration file will run the
-# test suite on all supported python versions. To use it, "pip install tox"
+# test suite on all supported python versions. To use it,"pip install tox"
 # and then run "tox" from this directory.
-envlist = py27,py34
+envlist = py27,py34,pep8
 usedevelop = True
 commands = {envbindir}/nosetests ovs/tests
 deps = -r{toxinidir}/requirements.txt
+commands = flake8