-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathtox.ini
91 lines (80 loc) · 1.83 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
[tox]
min_version = 4.20
envlist = min,min-extra,py39,py310,py311,py312,py313,extra,mypy,docs,twinecheck
[base]
deps =
packaging
pytest
pytest-asyncio
pytest-cov
# the expected output uses Python 3.10 syntax
pytest-mypy-testing==0.1.3; python_version >= '3.10'
mypy==1.9.0; python_version >= '3.10'
[testenv]
deps =
{[base]deps}
commands =
pytest \
--cov-report=term-missing:skip-covered \
--cov-report=html \
--cov-report= \
--cov-report=xml \
--cov=zyte_common_items \
{posargs:zyte_common_items docs tests}
[testenv:min]
basepython = python3.9
deps =
{[base]deps}
attrs==22.2.0
itemadapter==0.8.0
Jinja2==2.7
# For Jinja2:
markupsafe==1.1.1
price-parser==0.3.4
web-poet==0.14.0
zyte-parsers==0.5.0
[testenv:extra]
deps =
{[base]deps}
scrapy
commands =
pytest \
--cov-report=term-missing:skip-covered \
--cov-report=html \
--cov-report= \
--cov-report=xml \
--cov=zyte_common_items \
--doctest-glob="*.rst" \
--doctest-modules \
{posargs:zyte_common_items docs tests}
[testenv:min-extra]
basepython = python3.9
deps =
{[testenv:min]deps}
scrapy==2.0.1
[testenv:docs]
changedir = docs
deps =
-rdocs/requirements.txt
setenv =
READTHEDOCS_PROJECT=zyte-common-items
READTHEDOCS_VERSION=main
commands =
sphinx-build -n -b html . {envtmpdir}/html
# Temporarily removed -W due to
# https://github.com/scrapinghub/web-poet/pull/194
[testenv:mypy]
deps =
mypy==1.11.2
commands = mypy zyte_common_items tests
[testenv:twinecheck]
deps =
twine==5.1.1
build==1.2.2
commands =
python -m build --sdist
twine check dist/*
[testenv:linters]
deps =
pre-commit
commands = pre-commit run --all-files --show-diff-on-failure