forked from avishayil/consoleme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
76 lines (69 loc) · 1.54 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
71
72
73
74
75
76
[tox]
envlist = py37
[testenv]
deps =
.
setenv =
COVERAGE_FILE = test-reports/{envname}/.coverage
PYTEST_ADDOPTS = --junitxml=test-reports/{envname}/junit.xml -vv
CONFIG_LOCATION = ../consoleme-deploy/root/etc/consoleme/config/test.yaml
commands =
coverage run --source consoleme --parallel-mode -m pytest {posargs}
coverage combine
coverage report -m
coverage html -d test-reports/{envname}/coverage-html
coverage xml -o test-reports/{envname}/coverage.xml
[testenv:linters]
basepython = python3
skip_install = true
deps =
.
{[testenv:flake8]deps}
{[testenv:readme]deps}
{[testenv:bandit]deps}
commands =
{[testenv:flake8]commands}
{[testenv:readme]commands}
{[testenv:bandit]commands}
[testenv:flake8]
ignore = I100,I201,I202,D102,D100,C901,D103,D205
basepython = python3
skip_install = true
deps =
flake8
flake8-docstrings>=0.2.7
flake8-import-order>=0.9
commands =
flake8 consoleme setup.py test
[testenv:readme]
basepython = python3
deps =
readme_renderer
commands =
python setup.py check -r -s
[testenv:bandit]
basepython = python3
skip_install = true
deps =
bandit
commands =
bandit --ini tox.ini -r consoleme
exclude = /tests
[bandit]
skips = B104
exclude = /tests
[flake8]
ignore = E203,E501,I100,I201,I202,D102,D100,C901,D104,D101,D105,D107,D400,D103,D205,W503
exclude =
*.egg-info,
*.pyc,
.cache,
.coverage.*,
.gradle,
.tox,
build,
dist,
htmlcov.*
max-complexity = 20
import-order-style = google
application-import-names = flake8