forked from zigpy/zha-device-handlers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
46 lines (41 loc) · 1.11 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
[tox]
envlist = py37, py38, lint, pylint
skip_missing_interpreters = True
[testenv]
basepython = {env:PYTHON3_PATH:python3}
commands =
pytest --timeout=9 --durations=10 -qq -o console_output_style=count -p no:sugar {posargs}
deps =
-r{toxinidir}/requirements_test_all.txt
[testenv:cov]
commands =
pytest --timeout=9 --durations=10 -qq -o console_output_style=count -p no:sugar --cov --cov-report= {posargs}
{toxinidir}/script/check_dirty
deps =
-r{toxinidir}/requirements_test_all.txt
[testenv:pylint]
ignore_errors = True
deps =
-r{toxinidir}/requirements_test_all.txt
commands =
pylint {posargs} zhaquirks
[testenv:lint]
deps =
-r{toxinidir}/requirements_test_all.txt
commands =
flake8 {posargs}
pydocstyle {posargs:zhaquirks tests}
{toxinidir}/script/check_format
[flake8]
exclude = .git, __pycache__, old, build, dist, .tox
# To work with Black
max-line-length = 88
# E501: line too long
# W503: Line break occurred before a binary operator
# E203: Whitespace before ':'
# D202 No blank lines allowed after function docstring
ignore =
E501,
W503,
E203,
D202