-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathtox.ini
More file actions
78 lines (67 loc) · 1.6 KB
/
tox.ini
File metadata and controls
78 lines (67 loc) · 1.6 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
[tox]
minversion = 4.3.0
envlist = py3,py{310,311,312,313},pep8
skipsdist = False
[testenv]
usedevelop = True
setenv =
VIRTUAL_ENV={envdir}
OS_STDOUT_CAPTURE=1
OS_STDERR_CAPTURE=1
OS_TEST_TIMEOUT=60
allowlist_externals = uv
deps =
commands_pre =
uv sync --group test
commands =
uv run pytest {posargs}
[testenv:pep8]
description = Run style checks with ruff
allowlist_externals = uv
deps =
commands_pre =
uv sync --group dev
commands =
uv run ruff check src tests
uv run ruff format --check src tests
[testenv:format]
description = Auto-format code with ruff
allowlist_externals = uv
deps =
commands_pre =
uv sync --group dev
commands =
uv run ruff check --fix src tests
uv run ruff format src tests
[testenv:venv]
description = Run arbitrary commands in a virtual environment
commands = {posargs}
[testenv:cover]
description = Generate test coverage report
allowlist_externals = uv
deps =
commands_pre =
uv sync --group test
commands =
uv run pytest --cov=openstack_mcp_server --cov-report=html:cover --cov-report=xml:cover/coverage.xml --cov-report=term {posargs}
[testenv:debug]
description = Run tests with debugging
allowlist_externals = uv
deps =
commands_pre =
uv sync --group test
commands =
uv run pytest --pdb {posargs}
[testenv:docs]
description = Build documentation (placeholder for future use)
allowlist_externals = echo
commands =
echo "Documentation building not yet configured"
[testenv:py310]
basepython = python3.10
[testenv:py311]
basepython = python3.11
[testenv:py312]
basepython = python3.12
[testenv:py313]
basepython = python3.13