a14ccfa390
Change-Id: Ibde9a55f4e3259887aa3961fe6bcdfb595ad59c4
36 lines
1.0 KiB
INI
36 lines
1.0 KiB
INI
[tox]
|
|
envlist = py27,pep8
|
|
minversion = 1.6
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
install_command = pip install -U {opts} {packages}
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
deps = -r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
commands = /bin/bash run_tests.sh -N {posargs}
|
|
|
|
[testenv:pep8]
|
|
commands = /bin/bash run_tests.sh -N --pep8
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:cover]
|
|
commands = /bin/bash run_tests.sh -N --coverage {posargs}
|
|
|
|
[tox:jenkins]
|
|
downloadcache = ~/cache/pip
|
|
|
|
[flake8]
|
|
builtins = _
|
|
exclude = .venv,.git,.tox,dist,*openstack/common*,*lib/python*,*egg,build,panel_template,dash_template,local_settings.py,*/local/*,*/test/test_plugins/*
|
|
# E127 continuation line over-indented for visual indent
|
|
# E128 continuation line under-indented for visual indent
|
|
# H701 empty localization string
|
|
# H702 Formatting operation should be outside of localization method call
|
|
# H803 git commit title should not end with period (disabled on purpose, see bug #1236621)
|
|
ignore = E127,E128,H701,H702,H803
|
|
select = H236
|