-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathtox.ini
47 lines (43 loc) · 1.09 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
[tox]
skip_missing_interpreters = true
envlist =
coverage_erase
# When modifying the list of CPython and PyPy versions to test here,
# be sure to update the "depends" configurations elsewhere in this file.
# This ensures that coverage is reported only after all tests have run.
py{39, 310, 311, 312, 313}
pypy{39, 310}
coverage_report
[testenv:coverage_erase]
description = Erase coverage files
deps =
coverage[toml]
commands =
- coverage erase
[testenv]
description = Run the test suite
depends =
py{39, 310, 311, 312},pypy{39, 310}: coverage_erase
package = wheel
wheel_build_env = .pkg
deps =
coverage[toml]
pytest
flask-caching
commands =
coverage run -m pytest {posargs}
[testenv:coverage_report{,-ci}]
description = Generate HTML and console coverage reports
depends =
py{39, 310, 311, 312},pypy{39, 310}
deps =
coverage[toml]
commands_pre =
- coverage combine
# Only generate an HTML coverage report when running locally.
!ci: - coverage html
commands =
coverage report
[flake8]
max-line-length = 88
extend-ignore = E203