2015-03-17 17:21:34 +03:00
|
|
|
[tox]
|
2015-03-18 15:50:45 +03:00
|
|
|
envlist=
|
2020-01-26 23:15:50 +03:00
|
|
|
coveralls, pylint, flake8, pydocstyle, py27, py34, py35, py36, py37, py38, pypy, pypy3
|
2015-03-17 17:21:34 +03:00
|
|
|
|
2015-03-18 01:38:54 +03:00
|
|
|
[testenv]
|
|
|
|
deps=
|
|
|
|
unittest2
|
2020-10-25 03:56:32 +03:00
|
|
|
# TODO: Hotfix, remove when fixed https://github.com/aio-libs/aiohttp/issues/5107
|
|
|
|
typing_extensions
|
2020-12-06 05:36:30 +03:00
|
|
|
httpx
|
2020-06-25 04:23:29 +03:00
|
|
|
extras=
|
|
|
|
yaml
|
2020-07-11 19:15:00 +03:00
|
|
|
flask
|
2020-07-29 02:19:05 +03:00
|
|
|
aiohttp
|
2015-10-12 17:52:30 +03:00
|
|
|
commands=
|
2020-07-29 02:19:05 +03:00
|
|
|
unit2 discover -s tests/unit -p test_*_py3*.py
|
2015-03-18 01:38:54 +03:00
|
|
|
|
2015-03-18 15:50:45 +03:00
|
|
|
[testenv:coveralls]
|
2016-11-02 21:19:04 +03:00
|
|
|
passenv=TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH DEPENDENCY_INJECTOR_DEBUG_MODE
|
2020-07-29 02:19:05 +03:00
|
|
|
basepython=python3.8
|
2016-11-03 01:56:30 +03:00
|
|
|
usedevelop=True
|
2015-03-18 15:50:45 +03:00
|
|
|
deps=
|
|
|
|
{[testenv]deps}
|
2016-11-01 11:49:44 +03:00
|
|
|
cython
|
2015-03-18 15:50:45 +03:00
|
|
|
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
|
2020-07-29 02:25:02 +03:00
|
|
|
coverage run --rcfile=./.coveragerc -m unittest2 discover -s tests/unit/ -p test_*_py3*.py
|
2016-11-03 01:56:30 +03:00
|
|
|
coverage report --rcfile=./.coveragerc
|
2015-07-21 09:48:50 +03:00
|
|
|
coveralls
|
2015-03-18 15:50:45 +03:00
|
|
|
|
2018-10-18 19:39:19 +03:00
|
|
|
[testenv:py27]
|
2020-10-25 03:56:32 +03:00
|
|
|
deps=
|
|
|
|
unittest2
|
2020-07-29 02:19:05 +03:00
|
|
|
extras=
|
|
|
|
yaml
|
|
|
|
flask
|
2018-10-18 19:39:19 +03:00
|
|
|
commands=
|
|
|
|
unit2 discover -s tests/unit -p test_*_py2_py3.py
|
|
|
|
|
2020-06-25 04:23:29 +03:00
|
|
|
[testenv:py34]
|
2020-10-25 03:56:32 +03:00
|
|
|
deps=
|
|
|
|
unittest2
|
2020-08-27 05:24:20 +03:00
|
|
|
extras=
|
|
|
|
flask
|
2020-07-29 02:19:05 +03:00
|
|
|
commands=
|
|
|
|
unit2 discover -s tests/unit -p test_*_py3.py
|
2020-08-27 05:24:20 +03:00
|
|
|
|
|
|
|
[testenv:py35]
|
2020-06-25 04:23:29 +03:00
|
|
|
extras=
|
2020-08-27 05:24:20 +03:00
|
|
|
yaml
|
2020-07-11 19:15:00 +03:00
|
|
|
flask
|
2020-08-27 05:24:20 +03:00
|
|
|
commands=
|
|
|
|
unit2 discover -s tests/unit -p test_*_py3.py
|
2020-06-25 04:23:29 +03:00
|
|
|
|
2018-10-18 19:39:19 +03:00
|
|
|
[testenv:pypy]
|
2020-10-25 03:56:32 +03:00
|
|
|
deps=
|
|
|
|
unittest2
|
2020-07-29 02:19:05 +03:00
|
|
|
extras=
|
|
|
|
yaml
|
|
|
|
flask
|
2018-10-18 19:39:19 +03:00
|
|
|
commands=
|
|
|
|
unit2 discover -s tests/unit -p test_*_py2_py3.py
|
|
|
|
|
2015-03-18 17:09:22 +03:00
|
|
|
[testenv:pylint]
|
2015-03-18 16:53:08 +03:00
|
|
|
deps=
|
|
|
|
pylint
|
|
|
|
commands=
|
2016-11-03 00:55:14 +03:00
|
|
|
- pylint -f colorized --rcfile=./.pylintrc src/dependency_injector
|
2015-03-18 16:53:08 +03:00
|
|
|
|
2015-03-18 17:09:22 +03:00
|
|
|
[testenv:flake8]
|
2015-03-18 16:53:08 +03:00
|
|
|
deps=
|
|
|
|
flake8
|
|
|
|
commands=
|
2016-11-03 00:55:14 +03:00
|
|
|
flake8 --max-complexity=10 src/dependency_injector/
|
2016-02-08 01:29:41 +03:00
|
|
|
flake8 --max-complexity=10 examples/
|
2015-03-18 16:53:08 +03:00
|
|
|
|
2016-02-28 17:01:20 +03:00
|
|
|
[testenv:pydocstyle]
|
2015-03-18 16:53:08 +03:00
|
|
|
deps=
|
2016-02-28 17:01:20 +03:00
|
|
|
pydocstyle
|
2015-03-18 16:53:08 +03:00
|
|
|
commands=
|
2016-11-03 00:55:14 +03:00
|
|
|
pydocstyle src/dependency_injector/
|
2016-02-28 17:01:20 +03:00
|
|
|
pydocstyle examples/
|
2020-08-27 05:24:20 +03:00
|
|
|
|
|
|
|
[testenv:mypy]
|
|
|
|
deps=
|
|
|
|
mypy
|
|
|
|
commands=
|
|
|
|
mypy tests/typing
|