forked from rytilahti/python-miio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
55 lines (47 loc) · 855 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
[tox]
envlist=py35,py36,py37,flake8,typing
[tox:travis]
3.5 = py35
3.6 = py36
3.7 = py37
[testenv]
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
deps=
pytest
pytest-cov
voluptuous
commands=
py.test --cov --cov-config=tox.ini miio
[testenv:docs]
basepython=python
changedir=docs
deps=
sphinx
doc8
restructuredtext_lint
sphinx-autodoc-typehints
sphinx-click
commands=
doc8 .
#rst-lint ../README.rst *.rst
sphinx-build -W -b html -d {envtmpdir}/docs . {envtmpdir}/html
[testenv:flake8]
deps=flake8
commands=flake8 miio
[flake8]
exclude = .git,.tox,__pycache__
max-line-length = 100
[testenv:typing]
deps=mypy
commands=mypy --ignore-missing-imports miio
[coverage:run]
source = miio
branch = True
omit =
miio/*cli.py
miio/extract_tokens.py
miio/tests/*
miio/version.py
[coverage:report]
exclude_lines =
def __repr__