12dd334b2e
Depends-On: https://review.opendev.org/c/windmill/windmill-config/+/797553 Change-Id: I12e7b603c9d4ae7364982044069e9ac7ac4d6034 Signed-off-by: Paul Belanger <pabelanger@redhat.com>
42 lines
893 B
INI
42 lines
893 B
INI
[tox]
|
|
minversion = 1.4.2
|
|
envlist = docs,linters
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
basepython = python3
|
|
deps = -r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
|
|
[testenv:docs]
|
|
deps = -r{toxinidir}/doc/requirements.txt
|
|
whitelist_externals =
|
|
bash
|
|
commands=
|
|
bash -c "rm -rf doc/build"
|
|
doc8 doc
|
|
sphinx-build -b html doc/source doc/build/html
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[flake8]
|
|
# E123, E125 skipped as they are invalid PEP-8.
|
|
|
|
show-source = True
|
|
ignore = E123,E125
|
|
builtins = _
|
|
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
|
|
|
|
[testenv:linters]
|
|
setenv =
|
|
ANSIBLE_ROLES_PATH = ..
|
|
whitelist_externals = bash
|
|
commands =
|
|
# PEP8 Lint Check
|
|
flake8
|
|
# Ansible Syntax Check
|
|
bash -c "find tests -type f -regex '.*.y[a]?ml' -print | xargs -t -n1 \
|
|
ansible-playbook --syntax-check -i tests/inventory \
|
|
-e rolename=$(basename $(pwd)) > /dev/null"
|