forked from rytilahti/python-miio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
103 lines (90 loc) · 1.65 KB
/
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
[tox]
envlist=py35,py36,py37,flake8,docs,manifest,pypi-description
[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
extras=docs
deps=
sphinx
doc8
restructuredtext_lint
sphinx-autodoc-typehints
sphinx-click
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:flake8]
deps=flake8
commands=flake8 miio
[flake8]
exclude = .git,.tox,__pycache__
max-line-length = 88
select = C,E,F,W,B,B950
ignore = E501,W503,E203
[testenv:lint]
deps = pre-commit
skip_install = true
commands = pre-commit run --all-files
[testenv:typing]
deps=mypy
commands=mypy --ignore-missing-imports miio
[isort]
multi_line_output=3
include_trailing_comma=True
force_grid_wrap=0
use_parentheses=True
line_length=88
known_first_party=miio
forced_separate=miio.discover
known_third_party=
appdirs
attr
click
construct
cryptography
netifaces
pytest
pytz
setuptools
tqdm
zeroconf
[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__
[testenv:pypi-description]
basepython = python3.7
skip_install = true
deps =
twine
pip >= 18.0.0
commands =
pip wheel -w {envtmpdir}/build --no-deps .
twine check {envtmpdir}/build/*
[testenv:manifest]
basepython = python3.7
deps = check-manifest
skip_install = true
commands = check-manifest