-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
62 lines (49 loc) · 925 Bytes
/
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
[bandit]
exclude: tests/
targets: src/ipcrawl
[tox]
envlist =
py36,py37
bandit
coverage
docs-html
flake8
[testenv]
usedevelop = true
setenv TERM=xterm
deps=
-rtest-requirements.txt
commands=
python --version
pytest {posargs:-vvs -rs tests/}
passenv=
HOME
DIGICERT_DEVTEST_API_TOKEN
DOCKER_CERT_PATH
DOCKER_HOST
DOCKER_TLS_VERIFY
PKG_CONFIG_PATH
LDFLAGS
CPPFLAGS
TERM
[testenv:bandit]
deps =
-rtest-requirements.txt
commands =
bandit {posargs: --ini tox.ini -r}
[testenv:coverage]
deps =
-rtest-requirements.txt
commands =
coverage {posargs:run --branch --source ipcrawl -m pytest -rs -vvs tests/}
coverage report -m
[testenv:docs-html]
deps =
-r test-requirements.txt
commands =
sphinx-build -W -b html -d {envtmpdir}/ docs/source {envtmpdir}/
[testenv:flake8]
deps =
-rtest-requirements.txt
commands =
flake8 {posargs: src/ipcrawl/ tests/}