2011-10-25 16:50:08 -07:00
|
|
|
[tox]
|
2013-11-14 21:00:54 -06:00
|
|
|
minversion = 1.6
|
|
|
|
skipsdist = True
|
2016-02-10 21:20:37 +01:00
|
|
|
envlist = py34,py27,pep8,releasenotes
|
2011-10-25 16:50:08 -07:00
|
|
|
|
|
|
|
[testenv]
|
2013-11-14 21:00:54 -06:00
|
|
|
usedevelop = True
|
2014-01-08 14:41:01 -06:00
|
|
|
install_command = pip install -U {opts} {packages}
|
2012-03-21 10:34:46 -04:00
|
|
|
setenv = VIRTUAL_ENV={envdir}
|
2012-12-25 00:02:54 -06:00
|
|
|
OS_STDOUT_NOCAPTURE=False
|
|
|
|
OS_STDERR_NOCAPTURE=False
|
|
|
|
|
2013-05-24 18:37:26 -05:00
|
|
|
deps = -r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/test-requirements.txt
|
2015-12-02 12:52:30 +09:00
|
|
|
commands = find . -type f -name "*.pyc" -delete
|
|
|
|
python setup.py testr --slowest --testr-args='{posargs}'
|
|
|
|
whitelist_externals = find
|
2012-06-14 14:14:25 -04:00
|
|
|
|
2016-02-10 21:20:37 +01:00
|
|
|
[testenv:pep8]
|
2013-05-10 18:19:59 -04:00
|
|
|
commands =
|
|
|
|
flake8
|
2016-03-11 15:55:06 -06:00
|
|
|
bandit -r keystoneclient -x tests -n5
|
2016-01-18 21:54:29 +01:00
|
|
|
|
2016-02-17 14:11:19 -08:00
|
|
|
[testenv:bandit]
|
|
|
|
# NOTE(browne): This is required for the integration test job of the bandit
|
|
|
|
# project. Please do not remove.
|
2016-03-11 15:55:06 -06:00
|
|
|
commands = bandit -r keystoneclient -x tests -n5
|
2016-02-17 14:11:19 -08:00
|
|
|
|
2012-03-21 10:34:46 -04:00
|
|
|
[testenv:venv]
|
|
|
|
commands = {posargs}
|
2012-12-25 00:02:54 -06:00
|
|
|
|
|
|
|
[testenv:cover]
|
|
|
|
commands = python setup.py testr --coverage --testr-args='{posargs}'
|
|
|
|
|
2014-01-06 15:16:52 -06:00
|
|
|
[testenv:debug]
|
2014-09-09 10:14:54 -04:00
|
|
|
commands = oslo_debug_helper -t keystoneclient/tests {posargs}
|
2014-01-06 15:16:52 -06:00
|
|
|
|
2015-02-13 11:16:03 +11:00
|
|
|
[testenv:functional]
|
|
|
|
setenv = OS_TEST_PATH=./keystoneclient/tests/functional
|
2015-05-13 19:31:33 -05:00
|
|
|
passenv = OS_*
|
2015-02-13 11:16:03 +11:00
|
|
|
|
2013-05-10 18:19:59 -04:00
|
|
|
[flake8]
|
2015-10-01 16:59:36 +00:00
|
|
|
# D100: Missing docstring in public module
|
|
|
|
# D101: Missing docstring in public class
|
|
|
|
# D102: Missing docstring in public method
|
|
|
|
# D103: Missing docstring in public function
|
|
|
|
# D104: Missing docstring in public package
|
2016-06-03 08:53:12 -05:00
|
|
|
# D203: 1 blank line required before class docstring (deprecated in pep257)
|
|
|
|
ignore = D100,D101,D102,D103,D104,D203
|
2013-05-10 18:19:59 -04:00
|
|
|
show-source = True
|
2016-05-11 13:52:03 +08:00
|
|
|
exclude = .venv,.tox,dist,doc,*egg,build
|
2014-02-10 18:47:37 -06:00
|
|
|
|
|
|
|
[testenv:docs]
|
|
|
|
commands=
|
|
|
|
python setup.py build_sphinx
|
|
|
|
|
2015-11-29 17:25:13 -05:00
|
|
|
[testenv:releasenotes]
|
|
|
|
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
|
|
|
|
|
2014-10-27 10:54:48 -05:00
|
|
|
[hacking]
|
|
|
|
import_exceptions =
|
|
|
|
keystoneclient.i18n
|
2015-12-15 18:04:28 -05:00
|
|
|
local-check-factory = keystoneclient.tests.hacking.checks.factory
|