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]
envlist = py310, py311, py312, py313, py314, ruff, typing, lint, pylint
skip_missing_interpreters = True
[testenv]
setenv =
PYTHONPATH = {toxinidir}
commands =
pytest --cov xknx --cov-report= {posargs}
deps = -rrequirements/testing.txt
package = wheel
wheel_build_env = .pkg
[testenv:lint]
basepython = python3
commands =
pre-commit run codespell {posargs: --all-files}
pre-commit run check-json {posargs: --all-files}
pre-commit run trailing-whitespace {posargs: --all-files}
[testenv:pylint]
basepython = python3
commands =
pylint xknx examples
pylint --disable=protected-access,abstract-class-instantiated test
[testenv:ruff]
basepython = python3
commands =
ruff check {posargs:.}
ruff format {posargs:.}
[testenv:typing]
basepython = python3
commands =
pre-commit run mypy {posargs: --all-files}
|