forked from scrapy-plugins/scrapy-playwright
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
52 lines (45 loc) · 1.15 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
[tox]
envlist = bandit,black,flake8,typing,pylint,py
[testenv]
deps =
pytest==7.2.1
pytest_asyncio==0.10.0 # fails with newer versions
pytest_cov==4.0.0
pytest_twisted==1.14
commands =
playwright install
py.test -vv --reactor=asyncio \
--cov-report=term-missing --cov-report=html --cov-report=xml \
--cov=scrapy_playwright {posargs: scrapy_playwright tests}
setenv =
DEBUG=pw:api
[testenv:py]
basepython = python3
[testenv:bandit]
deps =
bandit
commands =
bandit -r {posargs: scrapy_playwright setup.py examples}
[testenv:black]
deps =
black>=22.10.0
commands =
black --check {posargs: scrapy_playwright setup.py tests examples}
[testenv:flake8]
deps =
flake8>=5.0
commands =
flake8 --exclude=.git,.tox,venv* {posargs: scrapy_playwright setup.py tests examples}
[testenv:typing]
deps =
mypy>=0.980
commands =
mypy --show-error-codes --ignore-missing-imports \
--follow-imports=skip {posargs: scrapy_playwright setup.py tests examples}
[testenv:pylint]
deps =
pytest==7.2.1
pylint==2.15.10
commands =
pip install -e .
pylint {posargs: scrapy_playwright setup.py tests}