-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathtox.ini
More file actions
71 lines (61 loc) · 1.78 KB
/
tox.ini
File metadata and controls
71 lines (61 loc) · 1.78 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
[tox]
# Running tests against min/max only to speed up local iterations (all non-EOL versions tested in GH actions)
envlist = py{37,314}, coverage, docs, style
# Pointing to pypi.org mirror explicitly to avoid using internal mirrors in place at some companies
# This is usually not necessary, but can be useful in some cases (eg: latest setuptools not on internal mirror)
indexserver =
default = https://pypi.org/simple
[testenv]
setenv = UV_CACHE_DIR={toxworkdir}/.uv-cache
COVERAGE_FILE={toxworkdir}/.coverage.{envname}
usedevelop = True
deps = -rtests/requirements.txt
py37: pip
py37: wheel
py314: pip
commands = pytest {posargs:-vv --cov=setupmeta --cov-report=xml tests}
[testenv:coverage]
setenv = {[testenv]setenv}
COVERAGE_FILE={toxworkdir}/.coverage
skip_install = True
deps = coverage
commands = coverage combine
coverage report -m
coverage xml
coverage html
[testenv:docs]
setenv = {[testenv]setenv}
PYTHONWARNINGS=ignore
skip_install = True
deps = check-manifest
readme-renderer
commands = check-manifest
python setup.py check --strict --restructuredtext
[testenv:style]
skip_install = True
deps = ruff
commands = ruff check
ruff format --diff
[testenv:reformat]
skip_install = True
deps = ruff
commands = ruff check --fix
ruff format
[testenv:venv]
envdir = .venv
usedevelop = True
commands = {posargs:python --version}
[testenv:refreshscenarios]
usedevelop = True
commands = python tests/scenarios.py regen
[check-manifest]
ignore-bad-ideas = PKG-INFO
ignore = .setupmeta.version
AGENTS.md
[coverage:run]
patch = subprocess
data_file = .tox/.coverage
[coverage:xml]
output = .tox/test-reports/coverage.xml
[coverage:html]
directory = .tox/test-reports/htmlcov