-
Notifications
You must be signed in to change notification settings - Fork 3
/
tox.ini
43 lines (38 loc) · 862 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
[tox]
envlist = py,pre-commit,mypy,docs,twinecheck
[testenv]
deps =
pytest
pytest-cov
commands =
py.test \
--cov-report=term --cov-report=html --cov-report= --cov-report=xml \
--cov-report=term-missing --cov=zyte_parsers \
--doctest-modules \
{posargs:zyte_parsers tests}
[testenv:pre-commit]
deps =
pre-commit
commands = pre-commit run --all-files --show-diff-on-failure
[testenv:mypy]
deps =
mypy==1.11.2
attrs>=18.2.0
pytest==8.3.3
types-lxml==2024.9.16
commands = mypy {posargs:zyte_parsers tests}
[testenv:docs]
basepython = python3
changedir = docs
deps =
-rdocs/requirements.txt
commands =
sphinx-build -W -b html . {envtmpdir}/html
[testenv:twinecheck]
basepython = python3
deps =
twine==5.1.1
build==1.2.2
commands =
python -m build --sdist
twine check dist/*