-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
46 lines (39 loc) · 763 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
[tox]
envlist=py37,py38,flake8,lint,coverage
skip_missing_interpreters = True
isolated_build = True
[testenv]
deps=
pytest
pytest-cov
voluptuous
typing
flake8
pytest-asyncio
coverage[toml]
commands=
python -m pytest --cov --cov-append {posargs}
[testenv:clean]
deps = coverage
skip_install = true
commands = coverage erase
[testenv:py37]
commands = coverage run -m pytest {posargs}
[testenv:py38]
commands = coverage run -m pytest {posargs}
[testenv:coverage]
basepython = python3.8
skip_install = true
deps = coverage[toml]
commands =
coverage report
coverage html
[testenv:flake8]
deps=
flake8
flake8-docstrings
commands=flake8 hassbridge
[testenv:lint]
deps = pre-commit
skip_install = true
commands = pre-commit run --all-files