-
Notifications
You must be signed in to change notification settings - Fork 6
/
tox.ini
36 lines (32 loc) · 865 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
[tox]
skipsdist = true
envlist = py{313}, lint, typing
skip_missing_interpreters = True
cs_exclude_words = hass,unvalid
[gh-actions]
python =
3.13: clean, py313, lint, typing
[testenv]
passenv = TOXENV,CI
allowlist_externals =
true
setenv =
LANG=en_US.UTF-8
PYTHONPATH = {toxinidir}/venta
deps =
-r{toxinidir}/requirements_test.txt
commands =
true # TODO: Run tests later
#pytest -n auto --log-level=debug -v --timeout=30 --durations=10 {posargs}
[testenv:lint]
ignore_errors = True
deps =
{[testenv]deps}
commands =
codespell -q 4 -L {[tox]cs_exclude_words} --skip="*.pyc,*.pyi,*~,*.json" custom_components
ruff check custom_components --no-cache
ruff format --no-cache --check .
pydocstyle -v custom_components
[testenv:typing]
commands =
mypy --ignore-missing-imports --follow-imports=skip custom_components