forked from scrapy/queuelib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
52 lines (45 loc) · 1.19 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 (http://tox.testrun.org/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
envlist = py, pypy3, black, flake8, pylint, security, typing
[testenv]
deps =
pytest !=3.1.1, !=3.1.2
pytest-cov==2.11.1
commands =
py.test --cov=queuelib --cov-report=xml --cov-report=term --cov-report=html {posargs:queuelib}
[testenv:black]
basepython = python3
deps =
black==21.4b0
# 8.1.0 breaks black < 22.3.0
click==8.0.2
commands =
black --check {posargs:queuelib setup.py}
[testenv:flake8]
basepython = python3
deps =
flake8==3.9.1
commands =
flake8 {posargs:queuelib setup.py}
[testenv:pylint]
basepython = python3
deps =
{[testenv]deps}
pylint==2.16.0
commands =
pylint {posargs:queuelib setup.py}
[testenv:security]
basepython = python3
deps =
bandit==1.7.0
commands =
bandit -r -c .bandit.yml {posargs:queuelib setup.py}
[testenv:typing]
basepython = python3
deps =
mypy==1.0.1
commands =
mypy --show-error-codes --ignore-missing-imports --follow-imports=skip {posargs:queuelib setup.py}