forked from uw-it-ist/pbxd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
60 lines (50 loc) · 1.01 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
[tox]
envlist = py3,flake8,bandit,safety
[testenv]
deps =
pytest
pytest-flask
coverage
-rrequirements.txt
commands =
coverage run -m pytest {posargs}
coverage report
[coverage:run]
source = pbxd
[coverage:report]
fail_under = 85
show_missing = True
[pytest]
log_cli = true
log_cli_level = DEBUG
; Check for style
[testenv:flake8]
basepython = python3
skip_install = true
deps =
flake8
flake8-colors
flake8-bugbear
pep8-naming
commands =
flake8 pbxd/ tests/ setup.py
[flake8]
max-line-length = 130
max-complexity = 17
format = ${cyan}%(path)s${reset}:${yellow_bold}%(row)d${reset}:${green_bold}%(col)d${reset}: ${red_bold}%(code)s${reset} %(text)s
; Check for common security issues
[testenv:bandit]
basepython = python3
skip_install = true
deps =
bandit
commands =
bandit -q -r pbxd/
; Check any pinned requirements for know vulnerabilties
[testenv:safety]
basepython = python3
skip_install = true
deps =
safety
commands =
safety check --bare -r requirements.txt