summaryrefslogtreecommitdiffhomepage
path: root/tox.ini
diff options
context:
space:
mode:
authorIWASE Yusuke <iwase.yusuke0@gmail.com>2017-12-15 10:50:16 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2017-12-17 19:27:46 +0900
commit83650576e4280bff7dac7083b7e842704852093b (patch)
treeb5272ca5ea1e6b5bbe5e5fb7782d0e63147a7a7e /tox.ini
parentd64db265b38b253fbaf0f3342893830489d074c3 (diff)
travis: Introduce autopep8 test
This patch add a new test using "autopep8" to keep codes reformatted easily by using Python tool. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini14
1 files changed, 13 insertions, 1 deletions
diff --git a/tox.ini b/tox.ini
index 33b287d9..758d1661 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,5 +1,5 @@
[tox]
-envlist = py27,py34,py35,pypy26,pycodestyle
+envlist = py27,py34,py35,pypy26,pycodestyle,autopep8
[testenv]
deps =
@@ -38,6 +38,18 @@ deps =
commands =
pycodestyle
+[testenv:autopep8]
+# If some errors displayed with this test, please reformat codes with the
+# following command first.
+# $ autopep8 --recursive --in-place ryu/
+whitelist_externals=bash
+deps =
+ -U
+ --no-cache-dir
+ autopep8
+commands =
+ bash -c 'test -z "$(autopep8 --recursive --diff ryu/)"'
+
[pycodestyle]
exclude = pbr-*,.venv,.tox,.git,doc,dist,tools,vcsversion.py,.pyc,ryu/contrib
# W503: line break occurred before a binary operator