awx/tox.ini
Don Naro dc81aa46d0
Create AWX docsite with RST content (#14328)
Co-authored-by: Thanhnguyet Vo <tvo@ansible.com>
Co-authored-by: TVo <thavo@redhat.com>
2023-09-01 09:24:03 -06:00

27 lines
674 B
INI

[tox]
isolated_build = True
[testenv:linters]
deps =
black
flake8
yamllint
allowlist_externals = make
setenv =
BLACK_ARGS = --check
PYTHON = python3
commands =
make black
flake8 awx awxkit awx_collection
yamllint -s .
[flake8]
select = F401,F402,F821,F823,F841,F811,E265,E266,F541,W605,E722,F822,F523,W291,F405
exclude = awx/ui/node_modules,awx/ui/node_modules,env,awx_collection_build
[testenv:docs]
description = Build documentation
deps = -r{toxinidir}/docs/docsite/requirements.txt
commands =
sphinx-build -T -E -W -n --keep-going {tty:--color} -j auto -c docs/docsite -d docs/docsite/build/doctrees -b html docs/docsite/rst docs/docsite/build/html