[tox] isolated_build = True [testenv:linters] deps = ruff yamllint allowlist_externals = make setenv = PYTHON = python3 commands = # awx_collection is excluded: ansible-test sanity runs its own linters which conflict with ruff ruff format --check awx awxkit ruff check awx awxkit yamllint -s . [testenv:pip-compile-docs] description = Compile docs build lockfiles deps = # pip-tools config file support was introduced in v7 pip-tools >= 7 commands = {envpython} -m piptools compile \ --output-file=docs/docsite/requirements.txt \ docs/docsite/requirements.in \ {posargs:--upgrade} [testenv:docs] description = Build documentation deps = -r{toxinidir}/docs/docsite/requirements.in -c{toxinidir}/docs/docsite/requirements.txt commands = python {toxinidir}/docs/docsite/download-json.py 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