python-rsrcfork/tox.ini
dgelessus 007d15eb3d Fix tox configuration breaking on spaces in the project path
The {envpython} substitution is not quoted, so spaces in the path are
treated as argument separators and cause the test runs to fail.
To work around this, we now always use an unqualified python command
instead of the {envpython} substitution. This is safe because the tox
commands are always run in a virtual environment, so the python command
is guaranteed to point to the environment's Python and not the system
default.
2020-03-30 01:46:10 +02:00

19 lines
396 B
INI

[tox]
# When adding a new Python version here, please also update the list of Python versions called by the GitHub Actions workflow (.github/workflows/ci.yml).
envlist = py{36,37,38},flake8,mypy
[testenv]
commands = python -m unittest discover --start-directory ./tests
[testenv:flake8]
deps =
flake8
flake8-bugbear
flake8-tabs
commands = flake8
[testenv:mypy]
deps =
mypy
commands = mypy