-
Notifications
You must be signed in to change notification settings - Fork 0
/
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, py38, py39, py310, py311, py312, pypy3
build, docs, lint, type
[testenv]
package = wheel
wheel_build_env = .pkg # reuse same wheel accross envs
deps =
pytest==8.1.2
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.1
commands =
python -m build
[testenv:docs]
skip_install = true
deps =
mkdocs==1.6.0
commands =
mkdocs {posargs:build} -f docs/mkdocs.yml
[testenv:lint]
deps =
ruff==0.4.2
commands =
ruff check src docs tests
ruff format --check src docs tests
[testenv:type]
deps =
mypy==1.10.0
pytest==8.1.2 # for typing
commands =
mypy
mypy --explicit-package-bases docs tests