-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
47 lines (42 loc) · 850 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
40
41
42
43
44
45
46
47
[tox]
envlist = {py36,py37,py38,py39}-{tests,cli},lint
skip_missing_interpreters = true
[testenv]
whitelist_externals =
cli: {[testenv:cli]whitelist_externals}
deps=
tests: {[testenv:tests]deps}
lint: {[testenv:lint]deps}
commands=
tests: {[testenv:tests]commands}
lint: {[testenv:lint]commands}
cli: {[testenv:cli]commands}
[testenv:tests]
deps=
mock
pytest
pytest-cov
commands=
pytest {posargs}
[testenv:lint]
basepython=python3
deps=
flake8
pylint
black
commands=
pylint iotlabwebsocket --rcfile=setup.cfg
flake8
black --check --diff .
[testenv:cli]
whitelist_externals=
/bin/bash
/usr/bin/bash
commands=
bash -exc "iotlab-websocket-service --help > /dev/null"
[testenv:format]
basepython=python3
deps=
black
commands=
black .