-
Notifications
You must be signed in to change notification settings - Fork 5
/
tox.ini
55 lines (50 loc) · 1.13 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
[tox]
envlist =
mypy-client
mypy-daemon
coverage_clean
py{38,39,310,311,312}
coverage_report
skip_missing_interpreters = true
minversion = 4.0.0
# default testenv is for the client tests
[testenv]
change_dir = {tox_root}/client
skip_install = true
deps =
{tox_root}/client
pytest
coverage
commands = coverage run -m pytest {posargs}
depends =
py{312,311,310,39,38}: coverage_clean
coverage_report: py{312,311,310,39,38}
[testenv:coverage_clean]
deps = coverage
skip_install = true
commands = coverage erase
[testenv:coverage_report]
deps = coverage
skip_install = true
commands_pre = -coverage combine
commands = coverage report
[testenv:mypy-{client,daemon}]
skip_install = true
change_dir =
client: {tox_root}/client
daemon: {tox_root}/daemon
deps =
mypy
client: ./client
daemon: ./daemon
daemon: boto3-stubs[logs]
setenv =
MYPY_FORCE_COLOR=1
commands =
client: mypy globus_cw_client {posargs}
daemon: mypy globus_cw_daemon {posargs}
daemon: mypy globus_cw_daemon_install {posargs}
[testenv:prepare-release]
skip_install = true
deps = scriv[toml]
commands = scriv collect