-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathtox.ini
79 lines (74 loc) · 1.46 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
[tox]
envlist = test,flake8,pylint,black
skipsdist = True
skip_missing_interpreters = true
[testenv]
basepython = python3
deps =
test: {[testenv:test]deps}
lint: {[testenv:lint]deps}
flake8: {[testenv:flake8]deps}
black: {[testenv:black]deps}
commands =
test: {[testenv:test]commands}
flake8: {[testenv:flake8]commands}
pylint: {[testenv:pylint]commands}
black: {[testenv:black]commands}
[testenv:test]
passenv =
BUILD_IN_DOCKER
DOCKER_ENV_VARS
DOCKER_ENVIRONMENT_CMDLINE
DOCKER_MAKE_ARGS
GITHUB_REPOSITORY
GITHUB_RUN_ID
GITHUB_SERVER_URL
HOME
IOTLAB_SITE
RIOTBASE
SSH_AUTH_SOCK
SSH_AGENT_PID
RESULT_OUTPUT_DIR
RESULT_OUTPUT_URL
NWKSKEY
APPSKEY
DEVADDR
DEVEUI
APPEUI
APPKEY
LORAWAN_DL_KEY # deprecated
TTN_DL_KEY
TTN_APP_ID
TTN_DEV_ID
TTN_DEV_ID_ABP
setenv =
PYTHONPATH = {env:RIOTBASE}/dist/pythonlibs:{env:PYTHONPATH:}
deps = -rrequirements.txt
commands =
pytest {posargs}
[testenv:flake8]
deps = flake8
commands =
flake8
[testenv:pylint]
deps = -rrequirements.txt
pylint
setenv =
PYTHONPATH = {env:RIOTBASE}/dist/pythonlibs:{env:PYTHONPATH:}
commands =
pylint \
conftest.py \
testutils/ \
03-single-hop-ipv6-icmp/ \
04-single-hop-6lowpan-icmp/ \
05-single-hop-route/ \
06-single-hop-udp/ \
07-multi-hop/ \
08-interop/ \
09-coap/ \
10-icmpv6-error/ \
11-lorawan/
[testenv:black]
deps = black
commands =
black --check --diff .