-
Notifications
You must be signed in to change notification settings - Fork 88
/
tox.ini
62 lines (54 loc) · 1.21 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
58
59
60
61
62
# tox.ini
[tox]
envlist = pre-commit,mypy,min,py27,py39,py310,py311,py312,py313,docs
[testenv]
deps =
-rrequirements.txt
-rtests/requirements.txt
commands =
py.test --doctest-modules --cov=scrapy_zyte_smartproxy {posargs:scrapy_zyte_smartproxy tests}
[testenv:pre-commit]
deps = pre-commit
commands = pre-commit run --all-files --show-diff-on-failure
skip_install = true
[testenv:mypy]
basepython = python3.10
deps =
mypy[python2]<0.980
pytest<4.7
twisted<=20.3.0
types-six<1.16.12
w3lib<2
commands =
mypy --py2 {posargs:scrapy_zyte_smartproxy tests}
[testenv:min]
basepython = python2.7
deps =
Scrapy==1.4.0
six==1.10.0
# https://github.com/scrapy/scrapy/blob/1.4.0/setup.py#L45
Twisted==13.1.0
w3lib==1.17.0
-rtests/requirements.txt
[testenv:security]
deps =
bandit
commands =
bandit -r {posargs:scrapy_zyte_smartproxy setup.py}
[docs]
changedir = docs
deps =
-rdocs/requirements.txt
[testenv:docs]
changedir = {[docs]changedir}
deps = {[docs]deps}
commands =
sphinx-build -nW -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/*