-
Notifications
You must be signed in to change notification settings - Fork 3
/
tox.ini
49 lines (43 loc) · 960 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
# for moving this file into pyproject.toml, see https://github.com/tox-dev/tox/issues/999
[tox]
envlist =
py, py39, py310, py311, py312, py313, pypy3
build, docs, lint, type
[testenv]
package = wheel
wheel_build_env = .pkg # reuse same wheel across envs
deps =
pytest==8.3.3
pytest-cov==5.0.0
passenv = PY_COLORS
setenv =
COVERAGE_FILE = {toxworkdir}/{envname}/.coverage
PYTHONDEVMODE = 1
commands =
pytest {posargs:-vv --cov-fail-under=100}
py: -coverage html
[testenv:build]
skip_install = true
deps =
build==1.2.2
commands =
python -m build
[testenv:docs]
skip_install = true
deps =
mkdocs==1.6.1
commands =
mkdocs {posargs:build} -f docs/mkdocs.yml
[testenv:lint]
deps =
ruff==0.6.9
commands =
ruff check src docs tests
ruff format --check src docs tests
[testenv:type]
deps =
mypy==1.11.2
pytest==8.3.3 # for typing
commands =
mypy
mypy --explicit-package-bases docs tests