-
-
Notifications
You must be signed in to change notification settings - Fork 78
/
tox.ini
29 lines (25 loc) · 718 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
[tox]
envlist = py3{8,9,10,11},lint,docs
isolated_build = True
[testenv]
extras = test
commands =
python -m coverage run --source=tests -m pytest {posargs:--verbose --showlocals} tests/
python -m coverage report --fail-under=100
[testenv:lint]
extras = test
commands =
python -m black --check --diff .
python -m flake8 src/fauxmo/ tests/
python -m mypy --install-types --non-interactive src/fauxmo/ tests/
[testenv:docs]
extras =
dev
test
changedir = docs
commands =
sphinx-build -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
[flake8]
exclude = .svn,CVS,.bzr,.hg,.git,__pycache__,docs,venv,.tox,.eggs,build,.venv
import-order-style = smarkets
application_import_names = fauxmo