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
|
[tox]
envlist = typing,pylint,docs,twinecheck,pre-commit,py39,py310,py311,py312,py313,pypy3.10
[testenv]
usedevelop = True
deps =
-r{toxinidir}/tests/requirements.txt
commands = py.test --cov=parsel --cov-report=xml {posargs:docs parsel tests}
[testenv:typing]
deps =
{[testenv]deps}
types-jmespath==1.0.2.20240106
types-lxml==2024.9.16
types-psutil==6.0.0.20241011
py==1.11.0
mypy==1.11.2
commands =
mypy {posargs:parsel tests} --strict
[testenv:pylint]
deps =
{[testenv]deps}
pylint==3.3.1
commands =
pylint docs parsel tests setup.py
[docs]
changedir = docs
deps = -rdocs/requirements.txt
[testenv:docs]
changedir = {[docs]changedir}
deps = {[docs]deps}
# No -W in LaTeX, because ReadTheDocs does not use it either, and there are
# image conversion warnings that cannot be addressed in ReadTheDocs
commands =
sphinx-build -W -b html . {envtmpdir}/html
sphinx-build -b latex . {envtmpdir}/latex
sphinx-build -b epub . {envtmpdir}/epub
[testenv:twinecheck]
basepython = python3
deps =
twine==5.1.1
build==1.2.2
commands =
python -m build --sdist
twine check dist/*
[testenv:pre-commit]
deps = pre-commit
commands = pre-commit run --all-files --show-diff-on-failure
skip_install = true
|