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-01-13 15:55:41 -06:00
|
|
|
bandit -c bandit.yaml -r keystoneclient -n5 -p gate
|
2016-01-18 21:54:29 +01: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
|
|
|
|
# D105: Missing docstring in magic method
|
|
|
|
# D200: One-line docstring should fit on one line with quotes
|
|
|
|
# D202: No blank lines allowed after function docstring
|
|
|
|
# D203: 1 blank required before class docstring.
|
|
|
|
# D204: 1 blank required after class docstring
|
|
|
|
# D205: Blank line required between one-line summary and description.
|
|
|
|
# D207: Docstring is under-indented
|
|
|
|
# D208: Docstring is over-indented
|
|
|
|
# D211: No blank lines allowed before class docstring
|
|
|
|
# D301: Use r”“” if any backslashes in a docstring
|
|
|
|
# D400: First line should end with a period.
|
|
|
|
# D401: First line should be in imperative mood.
|
2016-01-13 13:03:51 -08:00
|
|
|
ignore = D100,D101,D102,D103,D104,D105,D200,D202,D203,D204,D205,D207,D208,D211,D301,D400,D401
|
2013-05-10 18:19:59 -04:00
|
|
|
show-source = True
|
2014-05-05 17:39:40 -05:00
|
|
|
exclude = .venv,.tox,dist,doc,*egg,build,*openstack/common*
|
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
|