forked from rytilahti/python-miio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
59 lines (52 loc) · 1000 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
58
59
[tox]
envlist=py36,py37,py38,lint,typing,docs,pypi-description
skip_missing_interpreters = True
isolated_build = True
[tox:travis]
3.6 = py36
3.7 = py37
3.8 = py38
[testenv]
deps=
pytest
pytest-cov
pytest-mock
voluptuous
typing
flake8
coverage[toml]
importlib_metadata
commands=
pytest --cov miio
[testenv:docs]
basepython=python
extras=docs
deps=
sphinx
doc8
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:typing]
deps=mypy
commands=mypy --ignore-missing-imports miio
[testenv:pypi-description]
skip_install = true
deps =
twine
pip >= 18.0.0
commands =
pip wheel -w {envtmpdir}/build --no-deps .
twine check {envtmpdir}/build/*