sprockets.mixins.mediatype/tox.ini
Dave Shawley acc0a1db14
Add type annotations.
The next commit is a pile of documentation updates that I didn't want
cluttering up this commit.
2021-10-03 15:52:43 -04:00

32 lines
631 B
INI

[tox]
envlist = py37,py38,py39,coverage,docs,lint,typecheck
indexserver =
default = https://pypi.python.org/simple
toxworkdir = build/tox
skip_missing_interpreters = true
[testenv]
usedevelop = true
extras =
dev
msgpack
commands =
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
yapf -dr docs setup.py sprockets tests.py
[testenv:typecheck]
commands =
mypy sprockets/mixins/mediatype/ examples.py