-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
49 lines (44 loc) · 1 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
[tox]
envlist = py{39,310,311,312,313}
skip_missing_interpreters = true
labels =
python = py{39,310,311,312,313}
pypy = pypy310
code = code
[testenv]
deps =
-r test-requirements.txt
commands =
pytest {posargs}
[testenv:coverage]
description =
Measure test coverage and generate HTML report. Pass `xml` or `lcov` to specify different format.
deps =
{[testenv]deps}
coverage==7.*
pytest-cov==5.*
commands =
pytest --cov --cov-report=xml --cov-report=term --verbose
coverage {posargs:html}
[testenv:code]
description =
Check code with flake8, bandit and codespell.
skip_install = true
deps =
flake8==6.*
bandit==1.*
codespell==2.*
commands =
flake8 src tests
bandit --configfile=pyproject.toml --recursive src tests
codespell src tests
[flake8]
max-line-length = 88
[testenv:changelog]
description =
Collect changelog fragments. Pass `create` to create a new fragment.
skip_install = true
deps =
scriv==1.*
commands =
scriv {posargs:collect}