-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
39 lines (34 loc) · 1008 Bytes
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
[tox]
min_version = 4.0
requires = tox-extras
envlist = lint,type,test-{download,require}
[testenv]
basepython = python3
[testenv:lint]
skip_sdist = true
skip_install = true
tox_extras = lint
commands =
black --check virtualenv_seedhelper.py
ruff virtualenv_seedhelper.py
[testenv:type]
skip_sdist = true
skip_install = true
tox_extras = type
commands = mypy virtualenv_seedhelper.py
[testenv:test-download]
extras = test
allowlist_externals = rm
setenv =
SEEDHELPER_WHEELS_DIR={tox_root}/examples/download/temp/wheels
VIRTUALENV_CONFIG_FILE={tox_root}/examples/download/temp/virtualenv.ini
commands = pytest -vv -s tests/test_download.py
commands_post = rm -r examples/download/temp
[testenv:test-require]
extras = test
allowlist_externals = rm
setenv =
SEEDHELPER_WHEELS_DIR={tox_root}/examples/require/temp/wheels
VIRTUALENV_CONFIG_FILE={tox_root}/examples/require/temp/virtualenv.ini
commands = pytest -vv -s tests/test_require.py
commands_post = rm -r examples/require/temp