Files
awx/tox.ini
TVo 12a7229ee9 Publish open api spec on AWX for community use (#16221)
* Added link and ref to openAPI spec for community

* Update docs/docsite/rst/contributor/openapi_link.rst

Co-authored-by: Don Naro <dnaro@redhat.com>

* add sphinxcontrib-redoc to requirements

* sphinxcontrib.redoc configuration

* create openapi directory and files

* update download script for both schema files

* suppress warning for redoc

* update labels

* fix extra closing parenthesis

* update schema url

* exclude doc config and download script

The Sphinx configuration (conf.py) and schema download script
(download-json.py) are not application logic and used only for building
documentation. Coverage requirements for these files are overkill.

* exclude only the sphinx config file

---------

Co-authored-by: Don Naro <dnaro@redhat.com>
2026-01-26 18:16:49 +00:00

41 lines
1.0 KiB
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 = env,awx_collection_build
[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