flake8/tox.ini
Ian Cordasco 1312e4e0ef Add mypy env
There are still kinks to be worked out but this works reasonably well.
This will fail until we can figure out how to import things from the
typing module for the type: comments only. We do not want to add a
dependency on that backport only for this mypy env.
2016-02-21 13:09:44 -06:00

76 lines
1.3 KiB
INI

[tox]
minversion=2.3.1
envlist = py26,py27,py32,py33,py34,py35,flake8
[testenv]
deps =
mock
pytest
commands =
py.test {posargs}
[testenv:venv]
deps =
.
commands = {posargs}
[testenv:flake8]
skipsdist = true
skip_install = true
use_develop = false
deps =
flake8
flake8-docstrings
commands =
flake8
[testenv:pylint]
basepython = python3
skipsdist = true
skip_install = true
use_develop = false
deps =
.
pylint
commands =
pylint flake8
[testenv:mypy]
basepython = python3
skipsdist = true
skip_install = true
use_develop = false
deps =
mypy-lang
commands =
mypy flake8
[testenv:docs]
deps =
sphinx>=1.3.0
commands =
sphinx-build -E -W -c docs/source/ -b html docs/source/ docs/build/html
[testenv:serve-docs]
basepython = python3.4
skipsdist = true
skip_install = true
use_develop = false
changedir = docs/build/html
deps =
commands =
python -m http.server {posargs}
[testenv:readme]
deps =
readme_renderer
commands =
python setup.py check -r -s
[flake8]
# Ignore some flake8-docstrings errors
ignore = D203
# NOTE(sigmavirus24): Once we release 3.0.0 this exclude option can be specified
# across multiple lines. Presently it cannot be specified across multiple lines.
# :-(
exclude = .git,__pycache__,docs/source/conf.py