Repository navigation
Expand file tree
/
Copy pathtox.ini
More file actions
60 lines (55 loc) · 1.54 KB
/
Copy pathtox.ini
File metadata and controls
60 lines (55 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Run all tests:
# tox
# Run all tests in one file in all test environments:
# tox -- tests/test_api.py
# Run one test in all test environments:
# tox -- tests/test_api.py::test_api
# Run all tests in one file in one test environment:
# tox -e py310 -- tests/test_api.py
# Run one test in one test environment:
# tox -e py310 -- tests/test_api.py::test_api
[flake8]
# Only flake8-rst-docstrings, the rest is covered by ruff
select=RST
exclude=connexion/__init__.py
rst-roles=class,mod,obj
extend-ignore=RST303
[tox]
requires =
tox>=4.22
tox-uv>=1.11
envlist =
py310-min
{py310,py311,py312,py313,py314,py315}-pypi
pre-commit
[gh-actions]
python =
3.10: py310-min,py310-pypi
3.11: py311-pypi
3.12: py312-pypi,pre-commit
3.13: py313-pypi
3.14: py314-pypi
3.15: py315-pypi
[testenv]
setenv=PYTHONPATH = {toxinidir}:{toxinidir}
# Installs with `uv pip` rather than `uv sync`, so dependencies are resolved
# from PyPI when the env is created and the committed uv.lock is ignored. This
# mirrors the old `poetry lock` step and keeps the pypi envs testing the latest
# releases. uv.lock is used for development, the CI tooling and the Read the Docs
# build, but not for the test envs.
extras=
flask
swagger-ui
uvicorn
mock
dependency_groups=
tests
uv_resolution=
min: lowest-direct
commands=
uv pip list
python -m pytest tests --cov connexion --cov-report term-missing {posargs}
[testenv:pre-commit]
skip_install = true
deps=pre-commit
commands=pre-commit run --all-files --show-diff-on-failure