
Cloud Services API implemented on the client Change-Id: Ia129cfb471f78fa02c66db77ebb18fbb8449bed4
40 lines
1.1 KiB
INI
40 lines
1.1 KiB
INI
[tox]
|
|
minversion = 2.3.1
|
|
envlist = py27,pep8
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
setenv =
|
|
VIRTUAL_ENV={envdir}
|
|
PYTHONWARNINGS=default::DeprecationWarning
|
|
LANGUAGE=en_US
|
|
LC_ALL=en_US.utf-8
|
|
whitelist_externals = bash
|
|
find
|
|
rm
|
|
usedevelop = True
|
|
install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
commands =
|
|
find . -type f -name "*.pyc" -delete
|
|
|
|
[testenv:pep8]
|
|
basepython = python2.7
|
|
commands = flake8 {posargs}
|
|
|
|
[testenv:py27]
|
|
basepython = python2.7
|
|
|
|
|
|
[flake8]
|
|
# TODO(dmllr): Analyze or fix the warnings blacklisted below
|
|
# E711 comparison to None should be 'if cond is not None:'
|
|
# E712 comparison to True should be 'if cond is True:' or 'if cond:'
|
|
# H404 multi line docstring should start with a summary
|
|
# H405 multi line docstring summary not separated with an empty line
|
|
# E123, E125 skipped as they are invalid PEP-8.
|
|
show-source = True
|
|
builtins = _
|
|
ignore = E711,E712,H404,H405,E123,E125,E901,H301
|
|
exclude = .venv,.git,.tox,dist,doc,etc,*lib/python*,*egg,build
|