2015-03-17 14:21:34 +00:00
|
|
|
[tox]
|
2015-03-18 12:50:45 +00:00
|
|
|
envlist=
|
2021-01-27 02:11:27 +00:00
|
|
|
coveralls, pylint, flake8, pydocstyle, 2.7, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9, pypy2, pypy3
|
2015-03-17 14:21:34 +00:00
|
|
|
|
2015-03-17 22:38:54 +00:00
|
|
|
[testenv]
|
|
|
|
deps=
|
|
|
|
unittest2
|
2020-10-25 00:56:32 +00:00
|
|
|
# TODO: Hotfix, remove when fixed https://github.com/aio-libs/aiohttp/issues/5107
|
|
|
|
typing_extensions
|
2020-12-06 02:36:30 +00:00
|
|
|
httpx
|
2020-12-06 02:49:54 +00:00
|
|
|
fastapi
|
2020-06-25 01:23:29 +00:00
|
|
|
extras=
|
|
|
|
yaml
|
2020-07-11 16:15:00 +00:00
|
|
|
flask
|
2020-07-28 23:19:05 +00:00
|
|
|
aiohttp
|
2015-10-12 14:52:30 +00:00
|
|
|
commands=
|
2020-07-28 23:19:05 +00:00
|
|
|
unit2 discover -s tests/unit -p test_*_py3*.py
|
2015-03-17 22:38:54 +00:00
|
|
|
|
2015-03-18 12:50:45 +00:00
|
|
|
[testenv:coveralls]
|
2021-01-27 02:11:27 +00:00
|
|
|
passenv = GITHUB_* COVERALLS_*
|
2021-01-19 01:53:37 +00:00
|
|
|
basepython=python3.9
|
2016-11-02 22:56:30 +00:00
|
|
|
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
|
2020-07-28 23:25:02 +00:00
|
|
|
coverage run --rcfile=./.coveragerc -m unittest2 discover -s tests/unit/ -p test_*_py3*.py
|
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
|
|
|
|
2021-01-27 02:11:27 +00:00
|
|
|
[testenv:2.7]
|
2020-10-25 00:56:32 +00:00
|
|
|
deps=
|
|
|
|
unittest2
|
2020-07-28 23:19:05 +00:00
|
|
|
extras=
|
|
|
|
yaml
|
|
|
|
flask
|
2018-10-18 16:39:19 +00:00
|
|
|
commands=
|
|
|
|
unit2 discover -s tests/unit -p test_*_py2_py3.py
|
|
|
|
|
2021-01-27 02:11:27 +00:00
|
|
|
[testenv:3.4]
|
2020-10-25 00:56:32 +00:00
|
|
|
deps=
|
|
|
|
unittest2
|
2020-08-27 02:24:20 +00:00
|
|
|
extras=
|
|
|
|
flask
|
2020-07-28 23:19:05 +00:00
|
|
|
commands=
|
|
|
|
unit2 discover -s tests/unit -p test_*_py3.py
|
2020-08-27 02:24:20 +00:00
|
|
|
|
2021-01-27 02:11:27 +00:00
|
|
|
[testenv:3.5]
|
2020-12-06 02:49:54 +00:00
|
|
|
deps=
|
|
|
|
unittest2
|
2020-06-25 01:23:29 +00:00
|
|
|
extras=
|
2020-08-27 02:24:20 +00:00
|
|
|
yaml
|
2020-07-11 16:15:00 +00:00
|
|
|
flask
|
2020-08-27 02:24:20 +00:00
|
|
|
commands=
|
|
|
|
unit2 discover -s tests/unit -p test_*_py3.py
|
2020-06-25 01:23:29 +00:00
|
|
|
|
2021-01-27 02:11:27 +00:00
|
|
|
[testenv:pypy2]
|
2020-10-25 00:56:32 +00:00
|
|
|
deps=
|
|
|
|
unittest2
|
2020-07-28 23:19:05 +00:00
|
|
|
extras=
|
|
|
|
yaml
|
|
|
|
flask
|
2018-10-18 16:39:19 +00:00
|
|
|
commands=
|
|
|
|
unit2 discover -s tests/unit -p test_*_py2_py3.py
|
|
|
|
|
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/
|
2020-08-27 02:24:20 +00:00
|
|
|
|
|
|
|
[testenv:mypy]
|
|
|
|
deps=
|
|
|
|
mypy
|
|
|
|
commands=
|
|
|
|
mypy tests/typing
|