-
Notifications
You must be signed in to change notification settings - Fork 5
/
tox.ini
49 lines (42 loc) · 915 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
[tox]
envlist = py39,py310,py311,py312,py313,mypy,docs,twine
[testenv]
deps =
pytest
pytest-asyncio
pytest-cov
pytest-rerunfailures
pytest-twisted
responses
twisted
commands =
py.test \
--cov-report=term-missing --cov-report=html --cov-report=xml --cov=zyte_api \
--doctest-modules \
{posargs:zyte_api tests}
[testenv:mypy]
deps =
mypy==1.12.0
pytest==8.3.3
Twisted==24.7.0
types-tqdm==4.66.0.20240417
commands = mypy --ignore-missing-imports \
zyte_api \
tests
[testenv:docs]
changedir = docs
deps =
-rdocs/requirements.txt
basepython = python3
commands =
sphinx-build -W -b html . {envtmpdir}/html
[testenv:pre-commit]
deps = pre-commit
commands = pre-commit run --all-files --show-diff-on-failure
[testenv:twine]
deps =
twine==5.1.1
build==1.2.2
commands =
python -m build --sdist
twine check dist/*