47 lines
1.2 KiB
INI
47 lines
1.2 KiB
INI
[tox]
|
||
minversion = 2.0
|
||
envlist = py27,pep8
|
||
skipsdist = True
|
||
|
||
[testenv]
|
||
usedevelop = True
|
||
# tox is silly... these need to be separated by a newline....
|
||
whitelist_externals = bash
|
||
find
|
||
rm
|
||
env
|
||
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}
|
||
OS_STDOUT_CAPTURE=1
|
||
OS_STDERR_CAPTURE=1
|
||
OS_TEST_TIMEOUT=60
|
||
PYTHONWARNINGS=default::DeprecationWarning
|
||
LANG=en_US.UTF-8
|
||
LANGUAGE=en_US:en
|
||
LC_ALL=C
|
||
deps = -r{toxinidir}/test-requirements.txt
|
||
commands =
|
||
find . -type f -name "*.pyc" -delete
|
||
rm -f .testrepository/times.dbm
|
||
|
||
[testenv:pep8]
|
||
commands = flake8 {posargs}
|
||
|
||
[testenv:venv]
|
||
commands = {posargs}
|
||
|
||
[testenv:debug]
|
||
commands = oslo_debug_helper {posargs}
|
||
|
||
[flake8]
|
||
# E123, E125 skipped as they are invalid PEP-8.
|
||
|
||
show-source = True
|
||
ignore = E122,E123,E125,E126,E127,E128
|
||
builtins = _
|
||
# H106: Don’t put vim configuration in source files
|
||
# H203: Use assertIs(Not)None to check for None
|
||
enable-extensions=H106,H203
|
||
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
|