The tox project allows for the automation of many tasks related to Python packaging and testing.
For Nashpy it is used to:
- Configure all tests.
- Test across multiple python versions.
All test commands are written in tox.ini
. This
include things like checking style
with :ref:`black <black-discussion>` and presence of docstrings with
:ref:`interrogate <interrogate-discussion>`. Running all the checks is done
with a single standard command: python -m tox
.
Note that :ref:`checking for insensitive language in documentation <how-to-check-for-insensitive-language>` is not configured or run by tox.
This is done thanks to configurations written in tox.ini
:
[tox] isolated_build = True envlist = py38, py39