lvdongbing 7a2c17cab7 Fix pep8 issues and update requirements
Change-Id: I4a08875468f60fdabeb5934f50deed4453474e7c
2017-06-22 16:34:53 +08:00

42 lines
949 B
INI

[tox]
minversion = 1.6
envlist = py35,py27,pep8
skipsdist = True
[testenv]
usedevelop = True
install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
setenv =
VIRTUAL_ENV={envdir}
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands =
find . -type f -name "*.pyc" -delete
python setup.py testr --slowest --testr-args='{posargs}'
whitelist_externals = find
[testenv:pep8]
commands =
flake8
[testenv:cover]
setenv = VIRTUAL_ENV={envdir}
commands =
python setup.py testr --coverage {posargs}
[testenv:venv]
commands = {posargs}
[testenv:docs]
commands=
python setup.py build_sphinx
[flake8]
ignore = F403,F812,F821
show-source = True
exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build
[hacking]
import_exceptions = bileanclient.openstack.common._i18n