-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtox.ini
More file actions
33 lines (27 loc) · 931 Bytes
/
tox.ini
File metadata and controls
33 lines (27 loc) · 931 Bytes
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
[tox]
envlist = py312
skipsdist = True
[testenv]
description = Use uv to install libzapi[test] into the tox env, then run pytest
# Skip tox packaging if you don't need to test the built wheel
package = skip
skip_install = true
allowlist_externals = uv
passenv = UV_*, PIP_*, http_proxy, https_proxy, no_proxy, ZENDESK_URL, ZENDESK_EMAIL, ZENDESK_TOKEN
commands_pre =
uv pip install --python {envpython} -e .[test]
commands =
pytest --cov=./libzapi tests --cov-report=xml:coverage-reports/coverage-report.xml --cov-config=tox.ini --cov-branch
[testenv:lint]
description = Run Ruff linting
skip_install = true
allowlist_externals = uv
# (optional) pass proxies or envs if needed
passenv = UV_*, PIP_*, http_proxy, https_proxy, no_proxy
commands_pre =
# Fast install via uv directly into tox's env
uv pip install --python {envpython} ruff
commands =
uv run ruff check .
[coverage:run]
relative_files = False