forked from scrapy/cssselect
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
49 lines (43 loc) · 925 Bytes
/
tox.ini
File metadata and controls
49 lines (43 loc) · 925 Bytes
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 = pre-commit,pylint,py,docs,typing
[testenv]
deps =
lxml>=4.4
pytest-cov>=7.0.0
pytest>=5.4
sybil
commands =
pytest --cov=cssselect \
--cov-report=term-missing --cov-report=html --cov-report=xml \
{posargs: cssselect tests docs}
[testenv:pylint]
deps =
{[testenv]deps}
pylint==4.0.4
commands =
pylint {posargs: cssselect tests docs}
[testenv:docs]
changedir = docs
deps =
-r docs/requirements.txt
commands =
sphinx-build -W -b html . {envtmpdir}/html
[testenv:typing]
deps =
{[testenv]deps}
mypy==1.19.1
types-lxml==2026.1.1
commands =
mypy {posargs: cssselect tests}
[testenv:pre-commit]
deps = pre-commit
commands = pre-commit run --all-files --show-diff-on-failure
skip_install = true
[testenv:twinecheck]
basepython = python3
deps =
twine==6.2.0
build==1.4.0
commands =
python -m build --sdist
twine check dist/*