-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtox.ini
More file actions
52 lines (46 loc) · 1.09 KB
/
tox.ini
File metadata and controls
52 lines (46 loc) · 1.09 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
# for moving this file into pyproject.toml, see https://github.com/tox-dev/tox/issues/999
[tox]
envlist =
py, py310, py311, py312, py313, py314, pypy3
build, generate-integration-files, lint, type
[testenv]
package = wheel
wheel_build_env = .pkg # reuse same wheel across envs
deps =
pytest==8.4.2
pytest-cov==7.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.3.0
commands =
python -m build
[testenv:generate-integration-files]
deps =
pytest==8.4.2
pytest-cov==7.0.0
passenv = PY_COLORS
setenv =
PYTEST_ADDOPTS = --no-cov
PYTHONDEVMODE = 1
commands = pytest -vv -m generate_integration_files --generate-integration-files
[testenv:lint]
deps =
ruff==0.13.1
commands =
ruff check src tests
ruff format --check src tests
[testenv:type]
deps =
mypy==1.18.2
pytest==8.4.2 # for typing
commands =
mypy
mypy --namespace-packages --explicit-package-bases tests