-
Notifications
You must be signed in to change notification settings - Fork 5
/
tox.ini
67 lines (61 loc) · 1.27 KB
/
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
[tox]
minversion = 4.0.0
envlist = py39, py310, py311, py312, pypy3, coverage
skip_missing_interpreters = true
[gh]
python =
3.12 = py312
3.11 = py311
3.10 = py310
3.9 = py39
pypy-3.9 = pypy3
[testenv]
description = run tests with pytest under {base_python}
deps =
pytest>=8.0.0
pytest-recording>=0.13.1
coverage[toml]>=7.2.0
pytest-cov>=3.0.0
extras =
all
commands = pytest --showlocals --cov=desec --cov-context=test {posargs}
pass_env =
DESEC_TOKEN
PYTEST_*
setenv =
PIP_DISABLE_PIP_VERSION_CHECK = 1
!coverage: COVERAGE_FILE = .coverage.{env_name}
package = editable
[testenv:coverage]
description = combine test coverage results and generate reports
skip_install = true
depends = py39, py310, py311, py312, pypy3
deps =
coverage
commands_pre =
- coverage combine
commands =
coverage {posargs:report}
[testenv:format]
description = format the code
skip_install = true
deps =
ruff
commands = ruff format
[testenv:lint]
description = check code quality and style
skip_install = true
deps =
ruff
commands =
ruff check
ruff format --check --diff
[testenv:typecheck]
description = check types
skip_install = true
deps =
cryptography
dnspython
types-requests
mypy
commands = mypy {posargs} .