forked from rytilahti/python-miio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
50 lines (45 loc) · 863 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
[tox]
envlist=py36,py37,py38,py39,py310,lint,docs,pypi-description
skip_missing_interpreters = True
isolated_build = True
[testenv]
deps=
pytest
pytest-cov
pytest-mock
voluptuous
pyyaml
flake8
coverage[toml]
commands=
pytest --cov miio
[testenv:docs]
basepython=python
extras=docs
deps=
sphinx
doc8
pyyaml
restructuredtext_lint
sphinx-autodoc-typehints
sphinx-click
pydantic
commands=
doc8 docs
rst-lint README.rst docs/*.rst
sphinx-build -W -b html -d {envtmpdir}/docs docs {envtmpdir}/html
[doc8]
ignore-path = docs/_build*,.tox
max-line-length = 120
[testenv:lint]
deps = pre-commit
skip_install = true
commands = pre-commit run --all-files
[testenv:pypi-description]
skip_install = true
deps =
twine
pip >= 18.0.0
commands =
pip wheel -w {envtmpdir}/build --no-deps .
twine check {envtmpdir}/build/*