forked from andrewsayre/pysmartthings
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
33 lines (30 loc) · 733 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
[tox]
envlist = lint, cov, py37
skip_missing_interpreters = True
[testenv]
setenv =
LANG=en_US.UTF-8
PYTHONPATH = {toxinidir}
deps =
-r{toxinidir}/test-requirements.txt
commands =
pytest tests --timeout=30 {posargs}
[testenv:lint]
setenv =
LANG=en_US.UTF-8
PYTHONPATH = {toxinidir}
deps =
-r{toxinidir}/test-requirements.txt
commands =
isort tests pysmartthings --recursive --check-only
black tests pysmartthings --check --fast --quiet
pylint pysmartthings tests
flake8 tests pysmartthings --doctests
[testenv:cov]
setenv =
LANG=en_US.UTF-8
PYTHONPATH = {toxinidir}
deps =
-r{toxinidir}/test-requirements.txt
commands =
pytest tests --timeout=30 --cov {posargs}