-
Notifications
You must be signed in to change notification settings - Fork 49
/
Copy pathtox.ini
50 lines (44 loc) · 927 Bytes
/
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
[tox]
envlist = pre-commit,mypy,pylint,twinecheck,min,py39,py310,py311,py312,py313
[testenv]
deps =
pytest
pytest-cov
pytest-benchmark
commands =
pytest \
--cov=scrapy_deltafetch \
--cov-config=pyproject.toml \
--cov-report=xml \
--cov-report= \
{posargs:scrapy_deltafetch tests}
[testenv:min]
basepython = python3.9
deps =
{[testenv]deps}
scrapy==1.1.0
[testenv:pre-commit]
deps =
pre-commit
commands =
pre-commit run {posargs:--all-files}
[testenv:mypy]
deps =
{[testenv]deps}
mypy==1.15.0
commands =
mypy {posargs:scrapy_deltafetch tests}
# https://github.com/astral-sh/ruff/issues/970
[testenv:pylint]
deps =
{[testenv]deps}
pylint==3.3.4
commands =
pylint {posargs:scrapy_deltafetch tests}
[testenv:twinecheck]
deps =
twine==6.1.0
build==1.2.2.post1
commands =
python -m build --sdist
twine check dist/*