Skip to content
Snippets Groups Projects
tox.ini 739 B
Newer Older
spmohanty's avatar
spmohanty committed
[tox]
envlist = py36, py37, flake8, docs, coverage
spmohanty's avatar
spmohanty committed

[travis]
python =
spmohanty's avatar
spmohanty committed
    3.7: py37
spmohanty's avatar
spmohanty committed
    3.6: py36

[flake8]
max-line-length = 120

spmohanty's avatar
spmohanty committed
[testenv:flake8]
basepython = python
deps = flake8
commands = flake8 flatland

[testenv:docs]
basepython = python
whitelist_externals = make
commands = make docs

[testenv:coverage]
basepython = python
whitelist_externals = make
commands = make coverage

spmohanty's avatar
spmohanty committed
[testenv]
setenv =
    PYTHONPATH = {toxinidir}
deps =
    -r{toxinidir}/requirements_dev.txt
; If you want to make tox run the tests with the same versions, create a
; requirements.txt with the pinned versions and uncomment the following line:
;     -r{toxinidir}/requirements.txt
commands =
    pip install -U pip
    py.test --basetemp={envtmpdir}