mirror of
https://github.com/python-kasa/python-kasa.git
synced 2024-12-23 03:33:35 +00:00
ed57563e8b
* Convert to use poetry and pyproject.toml, update README * add some resources for contributors * minor adjustments * ci: separate tests from linting, run using poetry * add pytest-mock to dev requirements * combine running tests and reporting to codecov * generate both xml and html coverage reports * add codecov to dev dependencies
44 lines
722 B
INI
44 lines
722 B
INI
[tox]
|
|
envlist=py37,py38,flake8,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:flake8]
|
|
deps=
|
|
flake8
|
|
flake8-docstrings
|
|
commands=flake8 kasa
|
|
|
|
[testenv:lint]
|
|
deps = pre-commit
|
|
skip_install = true
|
|
commands = pre-commit run --all-files
|