-
Notifications
You must be signed in to change notification settings - Fork 7
/
tox.ini
62 lines (55 loc) · 1.34 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
56
57
58
59
60
61
62
[tox]
envlist = {py35,py36,py37,py38,py39}-{test,rapidjson},lint,flake8,check_package,black
skip_missing_interpreters = true
[testenv]
passenv = APPBASE
setenv =
APPBASE = {toxinidir}/riotctrl/tests/utils
package = riotctrl
deps =
test: {[testenv:test]deps}
rapidjson: {[testenv:rapidjson]deps}
lint: {[testenv:lint]deps}
flake8: {[testenv:flake8]deps}
black: {[testenv:black]deps}
check_package: {[testenv:check_package]deps}
commands =
test: {[testenv:test]commands}
rapidjson: {[testenv:rapidjson]commands}
lint: {[testenv:lint]commands}
flake8: {[testenv:flake8]commands}
black: {[testenv:black]commands}
check_package: {[testenv:check_package]commands}
[testenv:test]
deps =
pytest
pytest-cov
commands =
pytest -m "not rapidjson" {posargs}
[testenv:rapidjson]
deps =
pytest
pytest-cov
.[rapidjson]
commands =
pytest -m "rapidjson" {posargs}
[testenv:lint]
deps =
pylint
pytest
commands =
pylint --rcfile=setup.cfg {envsitepackagesdir}/{env:package}
# This does not check files in 'tests/utils/application'
[testenv:check_package]
deps =
twine
commands =
twine check --strict {distdir}/*
[testenv:flake8]
deps = flake8
commands =
flake8
[testenv:black]
deps = black
commands =
black --check --diff .