2014-06-28 23:57:00 +00:00
|
|
|
[tox]
|
|
|
|
envlist =
|
2016-04-29 05:44:27 +00:00
|
|
|
py26,
|
|
|
|
py27,
|
|
|
|
py32,
|
|
|
|
py33,
|
|
|
|
py34
|
2014-06-28 23:57:00 +00:00
|
|
|
# ignore missing setup.py
|
|
|
|
skipsdist = True
|
|
|
|
|
|
|
|
[testenv]
|
2016-04-29 05:44:27 +00:00
|
|
|
setenv =
|
|
|
|
PYTHONDONTWRITEBYTECODE = 1
|
2016-04-29 05:37:49 +00:00
|
|
|
deps =
|
|
|
|
mock
|
2016-04-29 05:44:27 +00:00
|
|
|
coverage
|
2016-04-29 05:50:09 +00:00
|
|
|
ipdb
|
|
|
|
ipython
|
2016-04-29 05:37:49 +00:00
|
|
|
pytest
|
2016-04-29 05:44:27 +00:00
|
|
|
commands =
|
|
|
|
coverage run --source=bin/ -m pytest -vv -rxs --tb native -s --durations 10 --strict {posargs:tests}
|
|
|
|
coverage report -m
|
2014-06-28 23:57:00 +00:00
|
|
|
|
|
|
|
[testenv:flake8]
|
2016-04-29 05:44:27 +00:00
|
|
|
deps =
|
|
|
|
flake8
|
|
|
|
pyflakes
|
|
|
|
pep8
|
|
|
|
mccabe
|
|
|
|
commands =
|
|
|
|
flake8 .
|
2014-06-28 23:57:00 +00:00
|
|
|
|
|
|
|
[flake8]
|
|
|
|
filename =
|
2016-04-29 05:44:27 +00:00
|
|
|
*.py,
|
|
|
|
autojump
|
2014-06-28 23:57:00 +00:00
|
|
|
ignore =
|
2016-04-29 05:44:27 +00:00
|
|
|
E126,
|
|
|
|
E128
|
|
|
|
max-line-length = 131
|
|
|
|
max-complexity = 20
|
2014-06-28 23:57:00 +00:00
|
|
|
show-pep8 = True
|
|
|
|
|
|
|
|
[pytest]
|
|
|
|
norecursedirs = .git .tox docs
|