-
-
Notifications
You must be signed in to change notification settings - Fork 36
/
tox.ini
40 lines (33 loc) · 868 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
[tox]
envlist = py38, py39, py310, py311, py312, pytest_earliest, coverage, lint
skip_missing_interpreters = true
[testenv]
commands = pytest {posargs}
description = Run pytest
package = wheel
wheel_build_env = .pkg
[testenv:coverage]
deps = coverage
basepython = python3.12
commands =
coverage run --source={envsitepackagesdir}/pytest_check,tests -m pytest
coverage report --fail-under=100 --show-missing
description = Run pytest, with coverage
[testenv:pytest_earliest]
deps = pytest==7.0.0
basepython = python3.11
commands = pytest {posargs}
description = Run earliest supported pytest
[testenv:lint]
skip_install = true
deps = ruff
basepython = python3.12
commands = ruff check src tests examples
description = Run ruff over src, test, exampless
[pytest]
addopts =
--color=yes
--strict-markers
--strict-config
-ra
testpaths = tests