engagement/tox.ini
Jeremy Stanley 7ee7a5ecbd Fix configuration for tox v4
Tox v4 changed how it interprets editable installs when skipping
sdist builds. It also removed the deprecated whitelist_externals in
favor of allowlist_externals. Get things working again.

Change-Id: I6db0f1fe7b726773f516370d64bb54d174488f87
2023-12-22 15:21:38 +00:00

30 lines
695 B
INI

[tox]
minversion = 3.1
envlist = linters, py3
ignore_basepython_conflict = True
[testenv]
basepython = python3
deps = -r{toxinidir}/test-requirements.txt
# TODO(fungi): work out a representative replay call with a suitable but
# small test payload and target results comparison
commands =
python setup.py test --slowest --testr-args='{posargs}'
[testenv:linters]
commands = flake8
[testenv:docs]
allowlist_externals = rm
deps = -r{toxinidir}/doc/requirements.txt
commands =
rm -fr doc/build
sphinx-build -W -b html doc/source doc/build/html
[testenv:stats]
commands = engagement-stats {posargs}
[flake8]
show-source = True
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build