forked from rytilahti/python-miio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
57 lines (51 loc) · 946 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
51
52
53
54
55
56
57
[tox]
envlist=py36,py37,py38,py39,lint,docs,pypi-description
skip_missing_interpreters = True
isolated_build = True
[tox:travis]
3.6 = py36
3.7 = py37
3.8 = py38
3.9 = py39
[testenv]
deps=
pytest
pytest-cov
pytest-mock
voluptuous
pyyaml
flake8
coverage[toml]
importlib_metadata
commands=
pytest --cov miio
[testenv:docs]
basepython=python
extras=docs
deps=
sphinx
doc8
pyyaml
restructuredtext_lint
sphinx-autodoc-typehints
sphinx-click
importlib_metadata
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/*