Debian Codegraph @

tox.ini

raw
1 [tox]
2 skip_missing_interpreters = true
3 envlist =
4 coverage_erase
5 # When modifying the list of CPython and PyPy versions to test here,
6 # be sure to update the "depends" configurations elsewhere in this file.
7 # This ensures that coverage is reported only after all tests have run.
8 py{39, 310, 311, 312, 313, 314, 315}
9 pypy311
10 coverage_report
11
12 [testenv:coverage_erase]
13 description = Erase coverage files
14 deps =
15 coverage[toml]
16 commands =
17 - coverage erase
18
19 [testenv]
20 description = Run the test suite
21 depends =
22 py{39, 310, 311, 312, 313, 314, 315},pypy{39, 310, 311}: coverage_erase
23 package = wheel
24 wheel_build_env = .pkg
25 deps =
26 coverage[toml]
27 pytest
28 flask-caching
29 commands =
30 coverage run -m pytest {posargs}
31
32 [testenv:coverage_report{,-ci}]
33 description = Generate HTML and console coverage reports
34 depends =
35 py{39, 310, 311, 312, 313, 314, 315},pypy{39, 310, 311}
36 deps =
37 coverage[toml]
38 commands_pre =
39 - coverage combine
40 # Only generate an HTML coverage report when running locally.
41 !ci: - coverage html
42 commands =
43 coverage report
44
45 [flake8]
46 max-line-length = 88
47 extend-ignore = E203