-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
70 lines (58 loc) · 1.27 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
63
64
65
66
67
68
69
70
[tox]
envlist = flake8,py36,py37
skipsdist = true
[testenv]
deps =
pytest
-r {toxinidir}/requirements.txt
commands = pytest {posargs}
[testenv:flake8]
deps = flake8
commands = flake8 {posargs}
[testenv:pylint]
deps =
pylint
-r {toxinidir}/requirements.txt
commands = pylint --rcfile tox.ini {posargs:application}
[testenv:bandit]
deps = bandit<1.6.0
commands = bandit -r --ini tox.ini
[testenv:behave]
deps =
behave
-r {toxinidir}/requirements.txt
commands = behave {posargs}
[testenv:clean]
deps = pyclean
whitelist_externals =
rm
commands =
py3clean -v {toxinidir}
rm -rf .cache/ .pytest_cache/ .tox/ tests/reports/
[testenv:requirements]
deps = pip-tools
commands = pip-compile --output-file=requirements/production.txt requirements/production.in --upgrade
[bandit]
exclude = .cache,.git,.tox,build,dist,docs,tests
targets = .
[behave]
# default_format = progress
default_tags = -@not_implemented -@xfail
junit = yes
junit_directory = tests/reports
paths = tests/acceptance
show_skipped = no
summary = no
[flake8]
exclude = .cache,.git,.tox,build
[pylint]
[MASTER]
output-format = colorized
reports = no
[pytest]
addopts =
--strict
--verbose
--doctest-modules
--ignore=tests/acceptance/steps
--junitxml=tests/reports/unittests.xml