-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
54 lines (48 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
[tox]
requires=
tox>=4
env_list= lint, type, {linux,windows,mac}-py{310,311}
isolated_build = true
[gh-actions]
python =
3.10: py310
3.11: py311
[gh-actions:env]
PLATFORM =
ubuntu-latest: linux
macos-latest: mac
windows-latest: windows
[testenv]
description = Run unit tests
platform =
linux: linux
windows: win32
mac: darwin
setenv =
PYTHONPATH = {toxinidir}
deps =
-rrequirements.txt
-rrequirements_dev.txt
commands =
pytest --basetemp={envtmpdir} --capture=tee-sys --continue-on-collection-errors --junit-xml build/test/{envname}.xml
[testenv:lint]
description = Run linters
skip_install = true
setenv =
PYTHONPATH = {toxinidir}
deps =
-rrequirements.txt
-rrequirements_dev.txt
commands =
pylint src --exit-zero -j 0 -f colorized --reports y
pylint src --exit-zero -j 0 -f json --output build/lint/pylint.json
[testenv:type]
description = Run type checker
skip_install = true
setenv =
PYTHONPATH = {toxinidir}
deps =
-rrequirements.txt
-rrequirements_dev.txt
commands =
mypy src --pretty --install-types --non-interactive --junit-xml build/lint/mypy.xml