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
|
[tox]
envlist = py310,py311,py312,py313,py314
[testenv]
deps =
pytest
pytest-cov >= 7.0.0
commands =
py.test \
--cov-report=term --cov-report=html --cov-report= --cov=itemloaders \
--doctest-modules \
{posargs:itemloaders tests}
[testenv:extra-deps]
deps =
{[testenv]deps}
attrs
scrapy
[testenv:pypy3]
basepython = pypy3
[docs]
changedir = docs
deps =
-rdocs/requirements.txt
setenv =
READTHEDOCS_PROJECT=itemloaders
READTHEDOCS_VERSION=master
[testenv:docs]
basepython = python3
changedir = {[docs]changedir}
deps = {[docs]deps}
setenv = {[docs]setenv}
commands =
sphinx-build -W -b html . {envtmpdir}/html
[testenv:twinecheck]
basepython = python3
deps =
twine==6.2.0
build==1.4.0
commands =
python -m build --sdist
twine check dist/*
[testenv:typing]
basepython = python3
deps =
mypy==1.19.1
attrs>=18.2.0
pytest==8.4.2
Scrapy==2.14.1
types-jmespath==1.1.0.20260124
commands =
mypy {posargs:itemloaders tests}
[testenv:pre-commit]
basepython = python3
deps =
pre-commit
commands =
pre-commit run {posargs:--all-files}
[testenv:pylint]
deps =
{[testenv]deps}
pylint==4.0.4
commands =
pylint docs itemloaders tests
|