forked from home-assistant/core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
47 lines (42 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
[tox]
envlist = py36, py37, py38, lint, pylint, typing, cov
skip_missing_interpreters = True
[testenv]
basepython = {env:PYTHON3_PATH:python3}
commands =
pytest --timeout=9 --durations=10 -n auto --dist=loadfile -qq -o console_output_style=count -p no:sugar {posargs}
{toxinidir}/script/check_dirty
deps =
-r{toxinidir}/requirements_test_all.txt
-c{toxinidir}/homeassistant/package_constraints.txt
pytest-xdist
[testenv:cov]
commands =
pytest --timeout=9 --durations=10 -n auto --dist=loadfile -qq -o console_output_style=count -p no:sugar --cov --cov-report= {posargs}
{toxinidir}/script/check_dirty
deps =
-r{toxinidir}/requirements_test_all.txt
-c{toxinidir}/homeassistant/package_constraints.txt
pytest-xdist
[testenv:pylint]
ignore_errors = True
deps =
-r{toxinidir}/requirements_all.txt
-r{toxinidir}/requirements_test.txt
-c{toxinidir}/homeassistant/package_constraints.txt
commands =
pylint {env:PYLINT_ARGS:} {posargs} homeassistant
[testenv:lint]
deps =
-r{toxinidir}/requirements_test.txt
commands =
python -m script.gen_requirements_all validate
python -m script.hassfest validate
pre-commit run flake8 {posargs: --all-files}
pre-commit run bandit {posargs: --all-files}
[testenv:typing]
deps =
-r{toxinidir}/requirements_test.txt
-c{toxinidir}/homeassistant/package_constraints.txt
commands =
pre-commit run --config .pre-commit-config-all.yaml mypy {posargs: --all-files}