-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtox.ini
77 lines (67 loc) · 1.64 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
[tox]
envlist = py,pre-commit,mypy,types,docs,twinecheck
[pytest]
filterwarnings =
ignore:distutils Version classes are deprecated:DeprecationWarning:pydantic
ignore:Using or importing the ABCs:DeprecationWarning:scrapy
ignore:inspect\.getargspec\(\) is deprecated since Python 3.0:DeprecationWarning:scrapy
ignore:'cgi' is deprecated and slated for removal in Python 3.13:DeprecationWarning:twisted
[testenv]
deps =
pytest
pytest-cov
commands =
pytest \
--cov-report=term --cov-report=html --cov-report= --cov-report=xml \
--cov-report=term-missing --cov=scrapy_spider_metadata \
--doctest-modules \
{posargs:scrapy_spider_metadata tests}
[testenv:1x]
deps =
{[testenv]deps}
pydantic<2
[testenv:min-1x]
base_python = python3.9
deps =
{[testenv]deps}
packaging==14.1
pydantic==1.9.0
scrapy==1.0.0
[testenv:min-2x]
base_python = python3.9
deps =
{[testenv]deps}
packaging==14.1
pydantic==2.0
scrapy==1.0.0
[testenv:pre-commit]
deps =
pre-commit
commands = pre-commit run --all-files --show-diff-on-failure
[testenv:mypy]
deps =
mypy==1.15.0
pytest==8.3.3
commands = mypy --strict {posargs:scrapy_spider_metadata tests}
[testenv:types]
deps =
{[testenv]deps}
{[testenv:mypy]deps}
pytest-mypy-testing==0.1.3
commands =
pytest {posargs:tests_typing}
[testenv:docs]
basepython = python3
changedir = docs
deps =
-rdocs/requirements.txt
commands =
sphinx-build -W -b html . {envtmpdir}/html
[testenv:twinecheck]
basepython = python3
deps =
twine==6.1.0
build==1.2.2.post1
commands =
python -m build --sdist
twine check dist/*