661358a588
Also fix ansible-lint errors and disable flake8 checks on the files within the roles until we fix them. Change-Id: Iab40c0fea517b2f74b91cab7b0f443de89e453b8
41 lines
994 B
INI
41 lines
994 B
INI
[tox]
|
|
minversion = 1.6
|
|
envlist = linters
|
|
skipdist = True
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
install_command = pip install -U {opts} {packages}
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
|
|
[testenv:bindep]
|
|
# Do not install any requirements. We want this to be fast and work even if
|
|
# system dependencies are missing, since it's used to tell you what system
|
|
# dependencies are missing! This also means that bindep must be installed
|
|
# separately, outside of the requirements files.
|
|
deps = bindep
|
|
commands = bindep test
|
|
|
|
[testenv:docs]
|
|
commands = python setup.py build_sphinx
|
|
|
|
[testenv:linters]
|
|
basepython=python2
|
|
whitelist_externals = bash
|
|
commands =
|
|
flake8
|
|
bash ci-scripts/ansible-lint.sh
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[flake8]
|
|
# E123, E125 skipped as they are invalid PEP-8.
|
|
|
|
show-source = True
|
|
ignore = E123,E125
|
|
builtins = _
|
|
# TODO(adarazs): reenable flake8 checks on roles after fixing them up
|
|
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build,roles
|