
The combination of select and ignore options doesn't do what we want, anyway. Now, we won't regress on a number of issues, like H234, H235, and E127. Also added H237 to ignore list, as we currently trip module multifile is removed in Python 3 ... in test/functional/test_object.py Change-Id: Id746552bc024e726e29105c077057e46e248a0a8 Related-Change: I41d63b9467083d7606ad18aaa398ca7738b27fae
79 lines
2.3 KiB
INI
79 lines
2.3 KiB
INI
[tox]
|
|
envlist = py27,tempauth,keystone,s3acl,pylint,pep8
|
|
minversion = 1.6
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
whitelist_externals =/bin/bash
|
|
usedevelop = True
|
|
install_command = pip install {opts} {packages}
|
|
# swift 2.7.0 from github
|
|
deps =
|
|
-r{toxinidir}/test-requirements.txt
|
|
http://tarballs.openstack.org/swift/swift-2.7.0.tar.gz
|
|
commands = nosetests {posargs:swift3/test/unit}
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
NOSE_WITH_OPENSTACK=1
|
|
NOSE_OPENSTACK_COLOR=1
|
|
NOSE_OPENSTACK_RED=0.05
|
|
NOSE_OPENSTACK_YELLOW=0.025
|
|
NOSE_OPENSTACK_SHOW_ELAPSED=1
|
|
NOSE_OPENSTACK_STDOUT=1
|
|
NOSE_WITH_COVERAGE=1
|
|
NOSE_COVER_BRANCHES=1
|
|
|
|
[testenv:tempauth]
|
|
commands = /bin/bash {posargs:swift3/test/functional/run_test.sh}
|
|
setenv = AUTH=tempauth
|
|
LOG_DEST={envdir}/log
|
|
|
|
[testenv:keystone]
|
|
commands = /bin/bash {posargs:swift3/test/functional/run_test.sh}
|
|
setenv = AUTH=keystone
|
|
LOG_DEST={envdir}/log
|
|
# keystone 9.0.0 from github
|
|
deps =
|
|
{[testenv]deps}
|
|
http://tarballs.openstack.org/keystone/keystone-9.0.0.tar.gz
|
|
|
|
[testenv:s3acl]
|
|
commands = /bin/bash {posargs:swift3/test/functional/run_test.sh}
|
|
setenv = AUTH=tempauth
|
|
LOG_DEST={envdir}/log
|
|
S3ACL=true
|
|
|
|
[testenv:pylint]
|
|
# Avoid to fail by checking members at lxml dynamically loaded module
|
|
commands = pylint -E swift3 --ignored-modules=lxml.etree
|
|
|
|
[testenv:pep8]
|
|
commands = flake8
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:cover]
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
NOSE_WITH_COVERAGE=1
|
|
NOSE_COVER_BRANCHES=1
|
|
NOSE_COVER_HTML=1
|
|
NOSE_COVER_HTML_DIR={toxinidir}/cover
|
|
|
|
[flake8]
|
|
# follow the same style guidelines with swift
|
|
# F812: list comprehension redefines ...
|
|
# H101: Use TODO(NAME)
|
|
# H202: assertRaises Exception too broad
|
|
# H233: Python 3.x incompatible use of print operator
|
|
# H237: module ... is removed in Python 3
|
|
# H301: one import per line
|
|
# H306: imports not in alphabetical order (time, os)
|
|
# H401: docstring should not start with a space
|
|
# H403: multi line docstrings should end on a new line
|
|
# H404: multi line docstring should start without a leading new line
|
|
# H405: multi line docstring summary not separated with an empty line
|
|
# H501: Do not use self.__dict__ for string formatting
|
|
ignore = F812,H101,H202,H233,H237,H301,H306,H401,H403,H404,H405,H501
|
|
exclude = .venv,.git,.tox,dist,doc,*egg,build
|
|
show-source = True
|