2016-02-14 01:56:32 +01:00
|
|
|
[tox]
|
2020-09-30 17:07:59 +02:00
|
|
|
envlist = py37, py38, lint, pylint, typing, cov
|
2016-02-14 01:56:32 +01:00
|
|
|
skip_missing_interpreters = True
|
2020-09-30 17:07:59 +02:00
|
|
|
ignore_basepython_conflict = True
|
2016-02-14 01:56:32 +01:00
|
|
|
|
|
|
|
[testenv]
|
2019-03-04 12:36:50 +01:00
|
|
|
basepython = {env:PYTHON3_PATH:python3}
|
2018-08-06 10:51:37 +02:00
|
|
|
commands =
|
2019-11-13 08:50:35 +01: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 10:51:37 +02:00
|
|
|
deps =
|
|
|
|
-r{toxinidir}/requirements_test_all.txt
|
|
|
|
|
|
|
|
[testenv:cov]
|
2016-02-14 01:56:32 +01:00
|
|
|
commands =
|
2019-11-13 08:50:35 +01: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-14 01:56:32 +01:00
|
|
|
deps =
|
2017-05-07 07:37:31 +02:00
|
|
|
-r{toxinidir}/requirements_test_all.txt
|
2016-02-14 01:56:32 +01:00
|
|
|
|
2017-11-20 02:39:24 +01:00
|
|
|
[testenv:pylint]
|
2020-08-27 16:57:58 +02:00
|
|
|
skip_install = True
|
2016-02-15 11:00:46 +01:00
|
|
|
ignore_errors = True
|
2017-05-07 07:37:31 +02:00
|
|
|
deps =
|
|
|
|
-r{toxinidir}/requirements_all.txt
|
|
|
|
-r{toxinidir}/requirements_test.txt
|
2016-02-14 01:56:32 +01:00
|
|
|
commands =
|
2019-11-04 08:12:15 +01:00
|
|
|
pylint {env:PYLINT_ARGS:} {posargs} homeassistant
|
2016-02-14 01:56:32 +01:00
|
|
|
|
2017-11-20 02:39:24 +01:00
|
|
|
[testenv:lint]
|
2016-02-14 01:56:32 +01:00
|
|
|
deps =
|
2017-11-20 02:39:24 +01:00
|
|
|
-r{toxinidir}/requirements_test.txt
|
2016-02-14 01:56:32 +01:00
|
|
|
commands =
|
2019-04-25 06:30:46 +02:00
|
|
|
python -m script.gen_requirements_all validate
|
2020-04-19 17:43:49 +02:00
|
|
|
python -m script.hassfest --action validate
|
2020-01-31 17:33:00 +01:00
|
|
|
pre-commit run codespell {posargs: --all-files}
|
2019-10-18 21:20:27 +02:00
|
|
|
pre-commit run flake8 {posargs: --all-files}
|
2019-11-18 09:10:15 +01:00
|
|
|
pre-commit run bandit {posargs: --all-files}
|
2016-07-21 07:38:52 +02:00
|
|
|
|
|
|
|
[testenv:typing]
|
2016-07-22 08:54:25 +02:00
|
|
|
deps =
|
|
|
|
-r{toxinidir}/requirements_test.txt
|
2016-07-21 07:38:52 +02:00
|
|
|
commands =
|
2020-02-01 16:12:46 +01:00
|
|
|
pre-commit run mypy {posargs: --all-files}
|