2015-08-26 19:29:48 +00:00
|
|
|
[tox]
|
2021-09-18 12:38:51 +00:00
|
|
|
envlist = py37,py38,py39,coverage,docs,lint,typecheck
|
2015-08-26 19:29:48 +00:00
|
|
|
indexserver =
|
2021-09-19 13:43:21 +00:00
|
|
|
default = https://pypi.python.org/simple
|
2015-08-26 19:29:48 +00:00
|
|
|
toxworkdir = build/tox
|
2016-01-10 21:05:07 +00:00
|
|
|
skip_missing_interpreters = true
|
2015-08-26 19:29:48 +00:00
|
|
|
|
|
|
|
[testenv]
|
2021-09-19 13:43:21 +00:00
|
|
|
usedevelop = true
|
|
|
|
extras =
|
|
|
|
dev
|
|
|
|
msgpack
|
2020-09-14 12:19:36 +00:00
|
|
|
commands =
|
2021-09-19 13:43:21 +00:00
|
|
|
python -m unittest tests.py
|
|
|
|
|
|
|
|
[testenv:coverage]
|
|
|
|
commands =
|
|
|
|
coverage run -m unittest tests.py
|
|
|
|
coverage report
|
|
|
|
|
|
|
|
[testenv:docs]
|
|
|
|
commands =
|
|
|
|
sphinx-build -b html -aEn docs {envtmpdir}/sphinx
|
|
|
|
|
|
|
|
[testenv:lint]
|
|
|
|
commands =
|
|
|
|
flake8 sprockets tests.py
|
2021-09-18 12:38:51 +00:00
|
|
|
yapf -dr docs setup.py sprockets tests.py
|
2021-09-18 12:38:51 +00:00
|
|
|
|
|
|
|
[testenv:typecheck]
|
|
|
|
commands =
|
|
|
|
mypy sprockets/mixins/mediatype/ examples.py
|