governance/tox.ini
Dmitriy Rabotyagov 5e4b092c53 Rename extra-atcs key to extra-acs
We have agreed to use term Active Contrubitor rather then
Active Technical Contributor, which means it's high time we've aligned
naming in our tools and releases documentation to align on
term to use. Moreover, it makes even more sense with Extra ACs, since
these are designed for ones, who do not contribute in gerrit but with
other means, which are usually non-technical.

Needed-By: https://review.opendev.org/c/openstack/releases/+/893833
Needed-By: https://review.opendev.org/c/openstack/election/+/893810
Change-Id: Id9f2d182d93a9fbe1357e9ecd4814d49d6eb962f
2023-09-06 10:09:30 +02:00

80 lines
2.0 KiB
INI

[tox]
envlist = docs,linters
minversion = 3.18.0
ignore_basepython_conflict = True
[testenv]
usedevelop = True
basepython = python3
setenv =
VIRTUAL_ENV={envdir}
PYTHON=coverage run --source openstack_governance --parallel-mode
OS_STDOUT_CAPTURE=1
OS_STDERR_CAPTURE=1
OS_DEBUG=1
OS_LOG_CAPTURE=1
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands =
stestr run '{posargs}'
coverage combine
coverage html -d cover
coverage xml -o cover/coverage.xml
coverage report --show-missing
[testenv:linters]
basepython = python3
allowlist_externals =
bash
{toxinidir}/tools/check_projects_yaml_alphabetized.sh
{toxinidir}/tools/validate_repositories.py
commands =
osg-check-schema
bash -c "find {toxinidir} \
\( -name .tox -prune \) \
-o -type f -name '*.yaml' \
-print0 | xargs -0 yamllint"
{toxinidir}/tools/check_projects_yaml_alphabetized.sh
flake8
whereto {toxinidir}/doc/source/_extra/.htaccess {toxinidir}/doc/test/redirect-tests.txt
{toxinidir}/tools/validate_repositories.py
[testenv:validate-legacy]
envdir = {toxworkdir}/linters
allowlist_externals =
{toxinidir}/tools/validate-legacy.py
commands =
{toxinidir}/tools/validate-legacy.py
[testenv:validate_acs]
allowlist_externals =
{toxinidir}/tools/validate_acs.py
commands = {toxinidir}/tools/validate_acs.py
[testenv:pep8]
commands =
flake8
[testenv:venv]
commands = {posargs}
[testenv:docs]
deps = -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/doc/requirements.txt
allowlist_externals =
find
rm
commands =
rm -Rf doc/build
find reference/projects -name '*.rst' -a '!' -name index.rst -delete
sphinx-build -W -b html doc/source doc/build/html
[testenv:check-review-status]
deps =
requests
prettytable
allowlist_externals =
{toxinidir}/tools/check_review_status.py
commands = {toxinidir}/tools/check_review_status.py