2015-03-17 17:21:34 +03:00
|
|
|
[tox]
|
2015-03-18 15:50:45 +03:00
|
|
|
envlist=
|
2015-03-18 16:53:08 +03:00
|
|
|
dev, coveralls, pylint, flake8, pep257, py26, py27
|
2015-03-17 17:21:34 +03:00
|
|
|
|
2015-03-18 01:38:54 +03:00
|
|
|
[testenv]
|
|
|
|
deps=
|
|
|
|
unittest2
|
|
|
|
|
2015-03-18 15:50:45 +03:00
|
|
|
[testenv:dev]
|
|
|
|
basepython=python
|
|
|
|
deps=
|
|
|
|
{[testenv]deps}
|
|
|
|
coverage
|
2015-03-18 01:38:54 +03:00
|
|
|
commands=
|
|
|
|
coverage erase
|
|
|
|
coverage run --rcfile=./.coveragerc -m unittest2 discover tests []
|
2015-03-18 15:50:45 +03:00
|
|
|
coverage html --rcfile=./.coveragerc
|
|
|
|
|
|
|
|
[testenv:coveralls]
|
|
|
|
basepython=python2.7
|
|
|
|
deps=
|
|
|
|
{[testenv]deps}
|
|
|
|
coverage
|
2015-03-18 01:38:54 +03:00
|
|
|
coveralls
|
2015-03-18 15:50:45 +03:00
|
|
|
commands=
|
2015-03-18 01:38:54 +03:00
|
|
|
coverage erase
|
2015-03-18 15:50:45 +03:00
|
|
|
coverage run --rcfile=./.coveragerc -m unittest2 discover tests []
|
|
|
|
coveralls
|
|
|
|
|
2015-03-18 16:53:08 +03:00
|
|
|
[pylint]
|
|
|
|
basepython=python2.7
|
|
|
|
deps=
|
|
|
|
pylint
|
|
|
|
commands=
|
|
|
|
pylint -f colorized --rcfile=./.pylintrc objects
|
|
|
|
|
|
|
|
[flake8]
|
|
|
|
basepython=python2.7
|
|
|
|
deps=
|
|
|
|
flake8
|
|
|
|
commands=
|
|
|
|
flake8 --max-complexity=8 objects
|
|
|
|
|
|
|
|
[pep257]
|
|
|
|
basepython=python2.7
|
|
|
|
deps=
|
|
|
|
pep257
|
|
|
|
commands=
|
|
|
|
pep257 objects
|
|
|
|
|
2015-03-18 15:50:45 +03:00
|
|
|
[testenv:py26]
|
|
|
|
commands=
|
|
|
|
unit2 discover tests []
|
|
|
|
|
|
|
|
[testenv:py27]
|
|
|
|
commands=
|
|
|
|
unit2 discover tests []
|