-
Notifications
You must be signed in to change notification settings - Fork 4
/
tox.ini
52 lines (47 loc) · 1.12 KB
/
tox.ini
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
# Keep docs in sync with docs env and .readthedocs.yml.
[gh-actions]
python =
3.10: py310
3.11: py311, docs
3.12: py312, lint
3.13: py313
[tox]
envlist = py310, py311, py312, py313, lint, docs
isolated_build = True
skipsdist = true
[testenv:lint]
basepython = python3.12
allowlist_externals =
make
pdm
commands =
pdm install -G :all,lint,test
pdm run make lint
[testenv]
setenv =
PDM_IGNORE_SAVED_PYTHON="1"
COVERAGE_PROCESS_START={toxinidir}/pyproject.toml
commands_pre =
pdm sync -G test
python -c 'import pathlib; pathlib.Path("{env_site_packages_dir}/cov.pth").write_text("import coverage; coverage.process_startup()")'
commands =
pdm run coverage run -m pytest tests --mypy-only-local-stub {posargs:-n auto}
allowlist_externals = pdm
package = wheel
wheel_build_env = .pkg
[testenv:py312]
setenv =
PDM_IGNORE_SAVED_PYTHON="1"
COVERAGE_PROCESS_START={toxinidir}/pyproject.toml
COVERAGE_CORE=sysmon
[testenv:docs]
basepython = python3.11
setenv =
PYTHONHASHSEED = 0
commands_pre =
pdm sync -G :all,docs
commands =
make docs
allowlist_externals =
make
pdm