2013-08-17 23:57:33 +08:00
|
|
|
[tox]
|
2019-07-04 22:20:39 +08:00
|
|
|
distshare = {homedir}/.tox/distshare
|
2023-07-23 19:36:50 +08:00
|
|
|
envlist = py{3.8,3.9,3.10,3.11}-pytest{6.2,7.0,7.1,7.2,7.3,7.4,latest}-coverage
|
|
|
|
py{3.12,3.13}-pytest{7.3,7.4,latest}-coverage
|
2023-10-11 03:31:34 +08:00
|
|
|
py3.12-pytestlatest-xdist-coverage
|
2023-01-03 18:29:42 +08:00
|
|
|
mypy
|
2013-08-17 23:57:33 +08:00
|
|
|
|
|
|
|
[testenv]
|
2022-11-05 21:23:59 +08:00
|
|
|
parallel_show_output = true
|
2019-08-28 00:16:15 +08:00
|
|
|
setenv =
|
2022-11-05 20:35:03 +08:00
|
|
|
coverage: _PYTEST_CMD=coverage run -m pytest
|
2019-08-28 00:16:15 +08:00
|
|
|
xdist: _PYTEST_MORE_ARGS=-n3 -rfsxX
|
2018-11-02 19:11:47 +08:00
|
|
|
deps =
|
|
|
|
pytestlatest: pytest
|
2023-07-23 19:15:40 +08:00
|
|
|
pytest7.4: pytest~=7.4.0
|
|
|
|
pytest7.3: pytest~=7.3.0
|
|
|
|
pytest7.2: pytest~=7.2.0
|
|
|
|
pytest7.1: pytest~=7.1.0
|
|
|
|
pytest7.0: pytest~=7.0.0
|
|
|
|
pytest6.2: pytest~=6.2.0
|
2019-08-28 00:16:15 +08:00
|
|
|
|
2022-07-28 02:09:56 +08:00
|
|
|
coverage: coverage[toml]
|
2019-08-28 00:16:15 +08:00
|
|
|
xdist: pytest-xdist
|
|
|
|
commands = {env:_PYTEST_CMD:pytest} {env:_PYTEST_MORE_ARGS:} {posargs:-vvl}
|
2013-08-17 23:57:33 +08:00
|
|
|
|
2022-02-24 23:52:23 +08:00
|
|
|
[testenv:mypy]
|
2023-07-23 19:43:24 +08:00
|
|
|
skip_install = true
|
|
|
|
allowlist_externals = poetry
|
|
|
|
commands_pre =
|
|
|
|
poetry install --with=dev
|
2022-02-24 23:52:23 +08:00
|
|
|
commands = mypy
|