-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
52 lines (45 loc) · 922 Bytes
/
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
[tox]
requires =
tox>=4.22
tox-uv
skipsdist = True
envlist =
py313
fix
check
type
coverage
docs
[testenv]
runner = uv-venv-lock-runner
setenv =
PYTHONPATH = {toxinidir}
COVERAGE_FILE=.coverage.{envname}
commands =
uv run py.test --cov=pystructtype --verbose --tb=long --durations=5 {posargs}
[testenv:coverage]
runner = uv-venv-lock-runner
allowlist_externals = /usr/bin/env
commands =
/usr/bin/env bash -c "{envpython} -m coverage combine .coverage.*"
coverage report
[testenv:fix]
runner = uv-venv-lock-runner
commands =
ruff format
ruff check --fix
[testenv:check]
runner = uv-venv-lock-runner
commands =
ruff check
[testenv:type]
runner = uv-venv-lock-runner
commands =
mypy src test docs/conf.py
[testenv:docs]
runner = uv-venv-lock-runner
commands =
sphinx-build {posargs:-E} -b html docs dist/docs
[gh-actions]
python =
3.13: py313