forked from afflux/pysomeip
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
47 lines (42 loc) · 899 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 = py38-{build,tests}, flake8, mypy, coverage
isolated_build = true
[testenv]
passenv = CI
deps =
tests: coverage[toml]>=5.1
build: pep517
commands =
tests: python -m coverage run -m unittest discover -s tests/ {posargs}
build: python -m pep517.check {toxinidir}
[testenv:flake8]
basepython = python3.8
skip_install = true
deps =
flake8
flake8-bugbear
flake8-colors
pep8-naming
commands =
flake8 src/ tests/
[testenv:coverage]
basepython = python3.8
skip_install = true
deps =
coverage[toml]>=5.1
commands =
python -m coverage report
python -m coverage xml
python -m coverage html
[testenv:mypy]
basepython = python3.8
skip_install = true
deps =
mypy>=0.940
commands =
mypy --show-error-codes src/ tools/
[testenv:docs]
basepython = python3.8
extras = docs
commands =
sphinx-build {posargs:-E} -b html docs dist/docs