2019-05-15 16:12:59 -04:00
|
|
|
[tox]
|
|
|
|
minversion = 1.6
|
|
|
|
skipdist = True
|
|
|
|
envlist = py27,py36,py37,fast8,pep8,cover,docs
|
|
|
|
|
|
|
|
[testenv]
|
|
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
|
|
usedevelop = True
|
|
|
|
install_command = pip install {opts} {packages}
|
|
|
|
|
|
|
|
deps = -r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/test-requirements.txt
|
|
|
|
commands =
|
|
|
|
pytest {posargs}
|
|
|
|
|
|
|
|
[testenv:cover]
|
|
|
|
commands =
|
|
|
|
pytest --cov=aprsd
|
|
|
|
|
|
|
|
[testenv:docs]
|
|
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
|
|
commands = sphinx-build -b html docs/source docs/html
|
|
|
|
|
|
|
|
[testenv:pep8]
|
|
|
|
commands =
|
2020-12-04 08:56:26 -05:00
|
|
|
flake8 {posargs} aprsd
|
2019-05-15 16:12:59 -04:00
|
|
|
|
|
|
|
[testenv:fast8]
|
|
|
|
basepython = python3
|
|
|
|
# Use same environment directory as pep8 env to save space and install time
|
|
|
|
envdir = {toxworkdir}/pep8
|
|
|
|
commands =
|
|
|
|
{toxinidir}/tools/fast8.sh
|
|
|
|
passenv = FAST8_NUM_COMMITS
|
|
|
|
|
|
|
|
[flake8]
|
|
|
|
show-source = True
|
2020-12-04 08:56:26 -05:00
|
|
|
ignore = E713,E501
|
2019-05-15 16:12:59 -04:00
|
|
|
exclude = .venv,.git,.tox,dist,doc,.ropeproject
|