diff options
author | zhifeng.jiang <jiang.zhifeng@zte.com.cn> | 2016-06-12 22:07:43 +0800 |
---|---|---|
committer | zhifeng.jiang <jiang.zhifeng@zte.com.cn> | 2016-06-13 13:07:50 +0800 |
commit | 929905100eeeb891896fbcfad721047925dc2a05 (patch) | |
tree | 9e90f5be682befa9fdceeff39dc1225bd1039018 /tox.ini | |
parent | 06fe75eed51ef0f227487fc23a834841b7a29760 (diff) |
Add the tox.ini and requirement list so that we can start pep8 check by "tox -e pep8"
JIRA:QTIP-89
Change-Id: Iff0792e2503be73865aa21c2995f1fb2252442fb
Signed-off-by: zhifeng.jiang <jiang.zhifeng@zte.com.cn>
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini new file mode 100644 index 00000000..3e5e1ef9 --- /dev/null +++ b/tox.ini @@ -0,0 +1,31 @@ +# 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" +# and then run "tox" from this directory. + +[tox] +envlist = py27 +skipsdist = True + +[testenv] +changedir=tests +deps = + -r{toxinidir}/requirements.txt + -r{toxinidir}/test-requirements.txt +commands= + py.test \ + --basetemp={envtmpdir} \ # py.test tempdir setting + {posargs} # substitute with tox' positional arguments + +[testenv:pep8] +deps = flake8 +commands = flake8 {toxinidir} + +[flake8] +# H803 skipped on purpose per list discussion. +# E123, E125 skipped as they are invalid PEP-8. + +show-source = True +ignore = E123,E125,H803 +builtins = _ +exclude=.venv,.git,.tox,dist,doc,build |