2015-03-17 14:21:34 +00:00
|
|
|
[tox]
|
2015-03-18 12:50:45 +00:00
|
|
|
envlist=
|
2016-02-28 14:01:20 +00:00
|
|
|
coveralls, pylint, flake8, pydocstyle, py26, py27, py33, py34, py35, pypy, pypy3
|
2015-03-17 14:21:34 +00:00
|
|
|
|
2015-03-17 22:38:54 +00:00
|
|
|
[testenv]
|
|
|
|
deps=
|
|
|
|
unittest2
|
2015-10-12 14:52:30 +00:00
|
|
|
commands=
|
2016-11-02 20:58:30 +00:00
|
|
|
unit2 discover tests/unit
|
2015-03-17 22:38:54 +00:00
|
|
|
|
2015-03-18 12:50:45 +00:00
|
|
|
[testenv:coveralls]
|
2016-11-02 18:19:04 +00:00
|
|
|
passenv=TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH DEPENDENCY_INJECTOR_DEBUG_MODE
|
2016-11-02 22:56:30 +00:00
|
|
|
basepython=python3.5
|
|
|
|
usedevelop=True
|
2015-03-18 12:50:45 +00:00
|
|
|
deps=
|
|
|
|
{[testenv]deps}
|
2016-11-01 08:49:44 +00:00
|
|
|
cython
|
2015-03-18 12:50:45 +00:00
|
|
|
coverage
|
2015-03-17 22:38:54 +00:00
|
|
|
coveralls
|
2015-03-18 12:50:45 +00:00
|
|
|
commands=
|
2015-03-17 22:38:54 +00:00
|
|
|
coverage erase
|
2016-11-02 20:58:30 +00:00
|
|
|
coverage run --rcfile=./.coveragerc -m unittest2 discover tests/unit
|
2016-11-02 22:56:30 +00:00
|
|
|
coverage report --rcfile=./.coveragerc
|
2015-07-21 06:48:50 +00:00
|
|
|
coveralls
|
2015-03-18 12:50:45 +00:00
|
|
|
|
2015-03-18 14:09:22 +00:00
|
|
|
[testenv:pylint]
|
2015-03-18 13:53:08 +00:00
|
|
|
deps=
|
|
|
|
pylint
|
|
|
|
commands=
|
2016-11-02 21:55:14 +00:00
|
|
|
- pylint -f colorized --rcfile=./.pylintrc src/dependency_injector
|
2015-03-18 13:53:08 +00:00
|
|
|
|
2015-03-18 14:09:22 +00:00
|
|
|
[testenv:flake8]
|
2015-03-18 13:53:08 +00:00
|
|
|
deps=
|
|
|
|
flake8
|
|
|
|
commands=
|
2016-11-02 21:55:14 +00:00
|
|
|
flake8 --max-complexity=10 src/dependency_injector/
|
2016-02-07 22:29:41 +00:00
|
|
|
flake8 --max-complexity=10 examples/
|
2015-03-18 13:53:08 +00:00
|
|
|
|
2016-02-28 14:01:20 +00:00
|
|
|
[testenv:pydocstyle]
|
2015-03-18 13:53:08 +00:00
|
|
|
deps=
|
2016-02-28 14:01:20 +00:00
|
|
|
pydocstyle
|
2015-03-18 13:53:08 +00:00
|
|
|
commands=
|
2016-11-02 21:55:14 +00:00
|
|
|
pydocstyle src/dependency_injector/
|
2016-02-28 14:01:20 +00:00
|
|
|
pydocstyle examples/
|