-
Notifications
You must be signed in to change notification settings - Fork 46
/
tox.ini
48 lines (41 loc) · 1019 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
41
42
43
44
45
46
47
48
[tox]
env_list = clean,py27,py34,py35,py36,py37,py38,py39,py310,py311,py312,lint,report,pkg
# only older virtualenvs support creating of virtualenvs < py36
requires = virtualenv<20.22.0
[pytest]
markers =
packaging: mark tests to be purely packaging related.
addopts = --doctest-modules --doctest-glob='*.rst' -m 'not packaging'
diceware tests docs README.rst
[testenv]
deps =
pytest
commands = pytest {posargs}
depends =
{py27,py39}: clean
report: py27,py39
[testenv:{py27,py39}]
deps =
pytest
pytest-cov
commands = pytest --cov --cov-append --cov-report= {posargs}
[testenv:report]
deps =
coverage
skip_install = true
commands =
coverage report -m --fail-under=100 --precision=1 --include="diceware/*"
coverage html
[testenv:clean]
deps =
coverage
skip_install = true
commands = coverage erase
[testenv:lint]
deps =
ruff
commands = ruff check diceware tests
[testenv:pkg]
# run only tests marked as 'packaging'-related
commands =
pytest -m 'packaging'