forked from scrapy/cssselect
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
37 lines (32 loc) · 718 Bytes
/
tox.ini
File metadata and controls
37 lines (32 loc) · 718 Bytes
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
[tox]
envlist = black,flake8,pylint,security,py
[testenv]
deps =
lxml>=4.4
pytest-cov>=2.8
pytest>=5.4
commands =
pytest --cov=cssselect \
--cov-report=term-missing --cov-report=html --cov-report=xml \
--verbose {posargs: cssselect tests}
[testenv:black]
deps =
black==21.6b0
commands =
black --check {posargs: cssselect setup.py tests}
[testenv:flake8]
deps =
flake8==3.9.2
commands =
flake8 {posargs: cssselect setup.py tests docs/conf.py}
[testenv:pylint]
deps =
{[testenv]deps}
pylint==2.9.5
commands =
pylint {posargs: cssselect setup.py tests docs}
[testenv:security]
deps =
bandit
commands =
bandit -r -c .bandit.yml {posargs: cssselect}