Files
python-tackerclient/tox.ini
yong sheng gong 6242db9fb1 Update requirements according to global requirements
This is important because if we install tacker along with
other openstack components, this inconsistency will break
system.

Due to the upgrade of hacking, current codes violate many
new rules. These violations will be fixed in follow up
patches.

Author:    yong sheng gong <gong.yongsheng@99cloud.net>
Change-Id: Ib30d31ca804aebf43c02eb8247c718ab00629f6f
Closes-bug: 1516045
2015-11-16 17:02:47 +08:00

42 lines
1.2 KiB
INI

[tox]
envlist = py26,py27,py33,py34,pypy,pep8
minversion = 1.6
skipsdist = True
[testenv]
setenv = VIRTUAL_ENV={envdir}
LANG=en_US.UTF-8
LANGUAGE=en_US:en
LC_ALL=C
usedevelop = True
install_command = pip install -U {opts} {packages}
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = python setup.py testr --testr-args='{posargs}'
[testenv:pep8]
commands = flake8
distribute = false
[testenv:venv]
commands = {posargs}
[testenv:cover]
commands = python setup.py testr --coverage --testr-args='{posargs}'
[tox:jenkins]
downloadcache = ~/cache/pip
[flake8]
# E125 continuation line does not distinguish itself from next logical line
# H302 import only modules
# H105 Don't use author tags
# H405 multi line docstring summary not separated with an empty line
# E265 block comment should start with '# '
# H238 old style class declaration, use new style (inherit from `object`)
# E129 visually indented line with same indent as next logical line
# E113 unexpected indentation
ignore = E125,H302,H105,H405,E265,H238,E129,E113
show-source = true
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,tools