mirror of
https://github.com/dgelessus/python-rsrcfork.git
synced 2024-05-29 01:41:27 +00:00
007d15eb3d
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.
19 lines
396 B
INI
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
|