2015-03-17 17:21:34 +03:00
|
|
|
[tox]
|
2024-11-04 04:48:40 +03:00
|
|
|
parallel_show_output = true
|
2015-03-18 15:50:45 +03:00
|
|
|
envlist=
|
2024-11-04 08:01:28 +03:00
|
|
|
coveralls, pylint, flake8, pydocstyle, 3.7, 3.8, 3.9, 3.10, 3.11, 3.12, 3.13, pypy3.9, pypy3.10
|
2015-03-17 17:21:34 +03:00
|
|
|
|
2015-03-18 01:38:54 +03:00
|
|
|
[testenv]
|
|
|
|
deps=
|
2021-10-18 23:19:03 +03:00
|
|
|
pytest
|
|
|
|
pytest-asyncio
|
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-12-06 05:49:54 +03:00
|
|
|
fastapi
|
2024-08-07 05:41:24 +03:00
|
|
|
flask<2.2
|
|
|
|
aiohttp<=3.9.0b1
|
2021-03-09 00:32:34 +03:00
|
|
|
numpy
|
|
|
|
scipy
|
2021-03-20 20:16:51 +03:00
|
|
|
boto3
|
|
|
|
mypy_boto3_s3
|
2024-08-07 05:41:24 +03:00
|
|
|
pydantic<2
|
|
|
|
werkzeug<=2.2.2
|
2020-06-25 04:23:29 +03:00
|
|
|
extras=
|
|
|
|
yaml
|
2021-10-18 23:19:03 +03:00
|
|
|
commands = pytest -c tests/.configs/pytest.ini
|
|
|
|
python_files = test_*_py3*.py
|
2024-11-10 08:01:30 +03:00
|
|
|
setenv =
|
|
|
|
COVERAGE_RCFILE = pyproject.toml
|
|
|
|
|
|
|
|
[testenv:.pkg]
|
|
|
|
passenv = DEPENDENCY_INJECTOR_*
|
2015-03-18 01:38:54 +03:00
|
|
|
|
2015-03-18 15:50:45 +03:00
|
|
|
[testenv:coveralls]
|
2024-11-04 04:48:40 +03:00
|
|
|
passenv = GITHUB_*, COVERALLS_*, DEPENDENCY_INJECTOR_*
|
2024-11-04 08:01:28 +03:00
|
|
|
basepython=python3.12 # TODO: Upgrade to version 3.13 is blocked by coveralls 4.0.1 not supporting Python 3.13
|
2015-03-18 15:50:45 +03:00
|
|
|
deps=
|
|
|
|
{[testenv]deps}
|
2024-11-04 04:48:40 +03:00
|
|
|
cython>=3,<4
|
2024-11-04 08:01:28 +03:00
|
|
|
coverage>=7
|
|
|
|
coveralls>=4
|
2015-03-18 15:50:45 +03:00
|
|
|
commands=
|
2015-03-18 01:38:54 +03:00
|
|
|
coverage erase
|
2024-11-10 08:01:30 +03:00
|
|
|
coverage run -m pytest -c tests/.configs/pytest.ini
|
|
|
|
coverage report
|
2015-07-21 09:48:50 +03:00
|
|
|
coveralls
|
2015-03-18 15:50:45 +03:00
|
|
|
|
2022-12-19 05:09:14 +03:00
|
|
|
[testenv:pypy3.9]
|
2021-03-09 00:32:34 +03:00
|
|
|
deps=
|
2021-10-18 23:19:03 +03:00
|
|
|
pytest
|
|
|
|
pytest-asyncio
|
2021-03-09 00:32:34 +03:00
|
|
|
httpx
|
2024-08-07 05:41:24 +03:00
|
|
|
flask<2.2
|
|
|
|
pydantic<2
|
|
|
|
werkzeug<=2.2.2
|
2021-03-09 00:32:34 +03:00
|
|
|
fastapi
|
2021-03-20 20:16:51 +03:00
|
|
|
boto3
|
|
|
|
mypy_boto3_s3
|
2021-03-09 00:32:34 +03:00
|
|
|
extras=
|
|
|
|
yaml
|
2024-08-07 05:41:24 +03:00
|
|
|
commands = pytest -c tests/.configs/pytest-py35.ini
|
2021-03-09 00:32:34 +03:00
|
|
|
|
|
|
|
|
2015-03-18 17:09:22 +03:00
|
|
|
[testenv:pylint]
|
2015-03-18 16:53:08 +03:00
|
|
|
deps=
|
|
|
|
pylint
|
2024-08-07 05:41:24 +03:00
|
|
|
flask<2.2
|
|
|
|
werkzeug<=2.2.2
|
2015-03-18 16:53:08 +03:00
|
|
|
commands=
|
2024-11-10 08:01:30 +03:00
|
|
|
- pylint -f colorized 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=
|
2024-08-07 05:41:24 +03:00
|
|
|
typing_extensions
|
|
|
|
pydantic<2
|
2020-08-27 05:24:20 +03:00
|
|
|
mypy
|
|
|
|
commands=
|
|
|
|
mypy tests/typing
|