
This commit fixes flake8 errors and fixes a minor bug related to
a schema version being v1 rather than v1.0.
OpenStack hacking rules are used to pin down flake8 to sane
standards using [0].
[0] 06e676c461/test-requirements.txt (L5)
Change-Id: Ib236df6f5ec9505c0e635f0faa9877d3397a2e55
53 lines
1.4 KiB
INI
53 lines
1.4 KiB
INI
[tox]
|
|
envlist = py{35,27},pep8
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
whitelist_externals = bash
|
|
find
|
|
rm
|
|
env
|
|
flake8
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
OS_TEST_PATH=./deckhand/tests/unit
|
|
LANGUAGE=en_US
|
|
LC_ALL=en_US.utf-8
|
|
passenv = OS_STDOUT_CAPTURE OS_STDERR_CAPTURE OS_TEST_TIMEOUT OS_TEST_LOCK_PATH OS_TEST_PATH http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
|
|
deps = -r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
commands =
|
|
find . -type f -name "*.pyc" -delete
|
|
rm -Rf .testrepository/times.dbm
|
|
|
|
[testenv:py27]
|
|
commands =
|
|
{[testenv]commands}
|
|
ostestr '{posargs}'
|
|
|
|
[testenv:py35]
|
|
commands =
|
|
{[testenv]commands}
|
|
ostestr '{posargs}'
|
|
|
|
[testenv:functional]
|
|
usedevelop = True
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
OS_TEST_PATH=./deckhand/tests/functional
|
|
LANGUAGE=en_US
|
|
commands =
|
|
find . -type f -name "*.pyc" -delete
|
|
ostestr '{posargs}'
|
|
|
|
[testenv:genconfig]
|
|
commands = oslo-config-generator --config-file=etc/deckhand/config-generator.conf
|
|
|
|
[testenv:pep8]
|
|
commands = flake8 {posargs}
|
|
|
|
[flake8]
|
|
# D100-104 deal with docstrings in public functions
|
|
# D205, D400, D401 deal with docstring formatting
|
|
enable-extensions = H106,H203,H904
|
|
ignore = E121,E122,E123,E124,E125,E126,E127,E128,E129,E131,E251,H405
|
|
exclude = .venv,.git,.tox,dist,*lib/python*,*egg,build,tools/xenserver*,releasenotes
|