-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
50 lines (43 loc) · 1016 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
49
[pytest]
# handle whitespace sequences equally and do not make a
# difference between u"a" and "a" in output.
doctest_optionflags = NORMALIZE_WHITESPACE ALLOW_UNICODE
addopts = --doctest-modules --doctest-glob='*.rst' --import-mode=importlib tests README.rst
[tox]
envlist = clean, py37, py38, py39, py310, py311, py312, report, lint
[testenv]
setenv= LANG=
usedevelop=True
deps =
pytest
pytest-cov
commands=
pytest --cov --cov-append --cov-report=
depends =
{py39}: clean
report: py39
[testenv:clean]
deps =
coverage
skip-install = true
commands = coverage erase
[testenv:{py319}]
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_list/*"
coverage html
[testenv:lint]
deps =
ruff
black
skip-install = true
commands =
black --check {posargs:tests diceware_list}
ruff check {posargs:tests diceware_list}