-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
44 lines (35 loc) · 905 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
[tox]
envlist = control_framework, bandit, flake8, safety
skipsdist = True
[testenv]
deps =
-r{toxinidir}/requirements/requirements.txt
-r{toxinidir}/requirements/test-requirements.txt
passenv = GITHUB_*
[testenv:control_framework]
description = Pytest Repository Code
commands =
python -m pytest --cov=src/ tests/ --cov-report=xml
[testenv:bandit]
description = Bandit Security Checks
commands =
bandit -r src/ -ll -ii
[testenv:flake8]
description = Flake8 Code Style Checks
commands =
flake8 src/
[testenv:safety]
description = Safety Vulnerability Checks
commands =
safety check --file requirements/requirements.txt
safety check --file requirements/test-requirements.txt
[pytest]
python_paths = src/ tests/
testpaths = tests
[flake8]
max-line-length = 120
indent-size = 4
max-complexity = 20
[gh-actions]
python =
3.8: control_framework, bandit, flake8, safety