mirror of
https://github.com/python-kasa/python-kasa.git
synced 2024-12-23 03:33:35 +00:00
c431dbb832
Replaces the previously used linting and code formatting tools with ruff.
38 lines
641 B
INI
38 lines
641 B
INI
[tox]
|
|
envlist=py37,py38,lint,coverage
|
|
skip_missing_interpreters = True
|
|
isolated_build = True
|
|
|
|
|
|
[testenv]
|
|
whitelist_externals =
|
|
poetry
|
|
coverage
|
|
commands =
|
|
poetry install -v
|
|
poetry run pytest --cov kasa/tests/
|
|
|
|
[testenv:clean]
|
|
deps = coverage
|
|
skip_install = true
|
|
commands = coverage erase
|
|
|
|
[testenv:py37]
|
|
commands = coverage run -m pytest {posargs}
|
|
|
|
[testenv:py38]
|
|
commands = coverage run -m pytest {posargs}
|
|
|
|
[testenv:coverage]
|
|
basepython = python3.8
|
|
skip_install = true
|
|
deps = coverage[toml]
|
|
commands =
|
|
coverage report
|
|
coverage html
|
|
|
|
[testenv:lint]
|
|
deps = pre-commit
|
|
skip_install = true
|
|
commands = pre-commit run --all-files
|