2016-02-13 19:56:32 -05:00
|
|
|
[tox]
|
2019-07-31 22:21:15 +03:00
|
|
|
envlist = py36, py37, py38, lint, pylint, typing, cov
|
2016-02-13 19:56:32 -05:00
|
|
|
skip_missing_interpreters = True
|
|
|
|
|
|
|
|
[testenv]
|
2019-03-04 12:36:50 +01:00
|
|
|
basepython = {env:PYTHON3_PATH:python3}
|
2018-08-06 01:51:37 -07:00
|
|
|
commands =
|
2019-11-13 09:50:35 +02:00
|
|
|
pytest --timeout=9 --durations=10 -n auto --dist=loadfile -qq -o console_output_style=count -p no:sugar {posargs}
|
2018-09-25 20:47:51 +02:00
|
|
|
{toxinidir}/script/check_dirty
|
2018-08-06 01:51:37 -07:00
|
|
|
deps =
|
|
|
|
-r{toxinidir}/requirements_test_all.txt
|
|
|
|
-c{toxinidir}/homeassistant/package_constraints.txt
|
2019-11-13 09:50:35 +02:00
|
|
|
pytest-xdist
|
2018-08-06 01:51:37 -07:00
|
|
|
|
|
|
|
[testenv:cov]
|
2016-02-13 19:56:32 -05:00
|
|
|
commands =
|
2019-11-13 09:50:35 +02:00
|
|
|
pytest --timeout=9 --durations=10 -n auto --dist=loadfile -qq -o console_output_style=count -p no:sugar --cov --cov-report= {posargs}
|
2018-09-25 20:47:51 +02:00
|
|
|
{toxinidir}/script/check_dirty
|
2016-02-13 19:56:32 -05:00
|
|
|
deps =
|
2017-05-06 22:37:31 -07:00
|
|
|
-r{toxinidir}/requirements_test_all.txt
|
2017-08-04 23:06:10 -07:00
|
|
|
-c{toxinidir}/homeassistant/package_constraints.txt
|
2019-11-13 09:50:35 +02:00
|
|
|
pytest-xdist
|
2016-02-13 19:56:32 -05:00
|
|
|
|
2017-11-19 17:39:24 -08:00
|
|
|
[testenv:pylint]
|
2016-02-15 10:00:46 +00:00
|
|
|
ignore_errors = True
|
2017-05-06 22:37:31 -07:00
|
|
|
deps =
|
|
|
|
-r{toxinidir}/requirements_all.txt
|
|
|
|
-r{toxinidir}/requirements_test.txt
|
2017-08-04 23:06:10 -07:00
|
|
|
-c{toxinidir}/homeassistant/package_constraints.txt
|
2016-02-13 19:56:32 -05:00
|
|
|
commands =
|
2019-11-04 09:12:15 +02:00
|
|
|
pylint {env:PYLINT_ARGS:} {posargs} homeassistant
|
2016-02-13 19:56:32 -05:00
|
|
|
|
2017-11-19 17:39:24 -08:00
|
|
|
[testenv:lint]
|
2016-02-13 19:56:32 -05:00
|
|
|
deps =
|
2017-11-19 17:39:24 -08:00
|
|
|
-r{toxinidir}/requirements_test.txt
|
2016-02-13 19:56:32 -05:00
|
|
|
commands =
|
2019-04-24 21:30:46 -07:00
|
|
|
python -m script.gen_requirements_all validate
|
2019-05-07 14:18:40 -07:00
|
|
|
python -m script.hassfest validate
|
2020-01-31 17:33:00 +01:00
|
|
|
pre-commit run codespell {posargs: --all-files}
|
2019-10-18 22:20:27 +03:00
|
|
|
pre-commit run flake8 {posargs: --all-files}
|
2019-11-18 10:10:15 +02:00
|
|
|
pre-commit run bandit {posargs: --all-files}
|
2016-07-21 00:38:52 -05:00
|
|
|
|
|
|
|
[testenv:typing]
|
2016-07-21 23:54:25 -07:00
|
|
|
deps =
|
|
|
|
-r{toxinidir}/requirements_test.txt
|
2019-03-04 12:36:50 +01:00
|
|
|
-c{toxinidir}/homeassistant/package_constraints.txt
|
2016-07-21 00:38:52 -05:00
|
|
|
commands =
|
2020-02-01 17:12:46 +02:00
|
|
|
pre-commit run mypy {posargs: --all-files}
|