-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtox.ini
57 lines (50 loc) · 1.11 KB
/
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
51
52
53
54
55
56
57
[tox]
envlist = py,pre-commit,mypy,docs,twinecheck,rules
[testenv]
deps =
pytest
pytest-cov
pytest-twisted
commands =
py.test \
--cov-report=term --cov-report=html --cov-report= --cov-report=xml \
--cov-report=term-missing --cov=duplicate_url_discarder \
--doctest-modules \
{posargs:duplicate_url_discarder tests}
[testenv:pinned]
basepython = python3.9
deps =
{[testenv]deps}
Scrapy==2.11.0
url-matcher==0.5.0
w3lib==2.0.1
[testenv:rules]
basepython = python3.9
deps =
{[testenv:pinned]deps}
duplicate-url-discarder-rules
[testenv:pre-commit]
deps =
pre-commit
commands = pre-commit run --all-files --show-diff-on-failure
[testenv:mypy]
deps =
duplicate-url-discarder-rules
mypy==1.12.0
pytest
commands = mypy {posargs:duplicate_url_discarder tests}
[testenv:docs]
basepython = python3
changedir = docs
deps =
-rdocs/requirements.txt
commands =
sphinx-build -W -b html . {envtmpdir}/html
[testenv:twinecheck]
basepython = python3
deps =
twine==5.1.1
build==1.2.2
commands =
python -m build --sdist
twine check dist/*