-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtox.ini
50 lines (45 loc) · 908 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
48
49
50
[tox]
envlist = {tests,cli,check}
skip_missing_interpreters = true
[testenv]
allowlist_externals =
cli: {[testenv:cli]allowlist_externals}
commands=
tests: {[testenv:tests]commands}
check: {[testenv:check]commands}
cli: {[testenv:cli]commands}
deps=
{[testenv:tests]deps}
{[testenv:check]deps}
[testenv:tests]
deps=
mock
pytest
pytest-cov
commands=
pytest {posargs}
[testenv:check]
deps=
build
flake8
black
pylint
twine
commands=
flake8
black --check --diff .
pylint riotgen --rcfile=setup.cfg
python -m build
twine check dist/*
[testenv:cli]
allowlist_externals=
/bin/bash
commands=
/bin/bash -exc "riotgen --help > /dev/null"
/bin/bash -exc "for i in application board driver example module pkg test; \
do riotgen $i --help > /dev/null; done"
[testenv:format]
deps=
black
commands=
black .