Debian Codegraph @

tox.ini

raw symbols SCIP
1 [tox]
2 isolated_build = True
3 envlist =
4 lint
5 py38,py39,py310,py311,py312,py313,py314
6 coverage
7 docs
8 audit
9
10 [testenv]
11 # Python 3.8 only: modern virtualenv seeds pip 26 / setuptools 82 into the env,
12 # but pip 26 refuses to run on 3.8 and setuptools 82 dropped pkg_resources
13 # (which zope.testrunner 6.6.1 -- the last 3.8-compatible release -- imports).
14 # Pin the seeded pip and cap setuptools on 3.8 so pkg_resources stays available.
15 # 3.9+ need neither: pip 26 runs there and zope.testrunner 8.x drops pkg_resources.
16 # These are no-ops under tox-uv and on CI (focal ships compatible tooling).
17 set_env =
18 py38: VIRTUALENV_PIP = 24.3.1
19 deps =
20 .[test]
21 py38: setuptools < 81
22 zope.testrunner
23 commands =
24 zope-testrunner --test-path src --tests-pattern ^tests {posargs}
25
26 [testenv:lint]
27 # align with .launchpad.yaml
28 basepython = python3.12
29 skip_install = true
30 deps =
31 pre-commit
32 commands =
33 pre-commit run --all-files
34
35 [testenv:coverage]
36 basepython = python3.12
37 deps =
38 .[test]
39 zope.testrunner
40 coverage
41 commands =
42 coverage run --source lazr.delegates -m zope.testrunner \
43 --test-path src --tests-pattern ^tests {posargs}
44 coverage report --show-missing --fail-under=100
45
46 [testenv:docs]
47 # align with .launchpad.yaml
48 basepython = python3.12
49 deps =
50 .[docs]
51 commands =
52 sphinx-build -b html -d src/lazr/delegates/docs/_build/doctrees src/lazr/delegates/docs src/lazr/delegates/docs/_build/html
53
54 [testenv:audit]
55 # align with .launchpad.yaml
56 basepython = python3.12
57 deps =
58 pip>=26.0
59 pip-audit
60 commands =
61 pip-audit