-
Notifications
You must be signed in to change notification settings - Fork 13
/
tox.ini
40 lines (35 loc) · 884 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
[tox]
envlist = typing,py,py38-scrapy22,pylint,pre-commit,twinecheck
[testenv]
deps =
-rtests/requirements.txt
py39-scrapy22: scrapy==2.2
commands =
pytest --verbose --cov=itemadapter --cov-report=term-missing --cov-report=html --cov-report=xml --doctest-glob=README.md {posargs: itemadapter README.md tests}
[testenv:typing]
basepython = python3
deps =
mypy==1.11.2
attrs
pydantic
scrapy
commands =
mypy --install-types --non-interactive \
--ignore-missing-imports {posargs:itemadapter}
[testenv:pylint]
deps =
pylint==3.3.1
commands =
pylint {posargs:itemadapter}
[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