bf614900cd
This Patch fixes flake8 error and enables this test for all new patches to tacker-horizon. H701 Empty localization string see https://github.com/openstack-dev/hacking/blob/master/ hacking/checks/localization.py#L109 see OpenStack Style Guidelines http://docs.openstack.org/developer/hacking/ This Patch enables two flake8 options: show-source max-complexity show-source adds output with source code for each error see for max-complexity https://flake8.readthedocs.org/en/latest/ Change-Id: I337846738d53488093d324ebfe1c8b21ce3681f6 Closes-Bug: #1531680
52 lines
1.1 KiB
INI
52 lines
1.1 KiB
INI
[tox]
|
|
envlist = py27,pep8
|
|
minversion = 1.6
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
basepython=python2.7
|
|
usedevelop = True
|
|
install_command = pip install -U {opts} {packages}
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
# Note the hash seed is set to 0 until horizon can be tested with a
|
|
# random hash seed successfully.
|
|
# PYTHONHASHSEED=0
|
|
deps =
|
|
-r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
http://tarballs.openstack.org/horizon/horizon-master.tar.gz
|
|
http://tarballs.openstack.org/python-tackerclient/python-tackerclient-master.tar.gz
|
|
|
|
commands =
|
|
{envpython} {toxinidir}/manage.py test tacker_horizon --settings=tacker_horizon.test.settings {posargs}
|
|
|
|
[testenv:py27]
|
|
commands =
|
|
{envpython} {toxinidir}/manage.py test tacker_horizon --settings=tacker_horizon.test.settings {posargs}
|
|
|
|
[tox:jenkins]
|
|
|
|
[testenv:pep8]
|
|
usedevelop = True
|
|
whitelist_externals =
|
|
git
|
|
setenv =
|
|
{[testenv]setenv}
|
|
DJANGO_SETTINGS_MODULE=tacker_horizon.test.settings
|
|
commands =
|
|
flake8
|
|
|
|
[testenv:doc]
|
|
deps = Sphinx
|
|
commands = sphinx-build doc/source doc/build
|
|
|
|
[testenv:cover]
|
|
setenv = NOSE_WITH_COVERAGE=1
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[flake8]
|
|
show-source = True
|
|
max-complexity = 20
|