-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
63 lines (51 loc) · 1.09 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
[tox]
envlist = lint, py36, py37, py38, py39, safety
[testenv]
deps =
coverage
pytest!=5.3.4 # Error in 5.3.4: https://github.com/pytest-dev/pytest/issues/6517
pytest-mock
python-consul>=1.1.0
-rrequirements.txt
commands =
coverage run -m pytest -v --color=yes --maxfail 1 {posargs} tests/
coverage report --fail-under=100
[testenv:dev]
basepython = python3.7
commands =
sitepackages = True
usedevelop = True
[testenv:lint]
deps =
flake8
pep8-naming
commands = flake8 --append-config tox.ini {posargs} rebootmgr/ tests/
usedevelop = True
skip_install = True
[testenv:local]
basepython = python3.7
commands =
deps =
{[testenv]deps}
{[testenv:lint]deps}
envdir = venv
usedevelop = True
[testenv:safety]
deps =
safety
-rrequirements.txt
commands = safety check {posargs} --full-report
usedevelop = True
# Coverage
[coverage:run]
source = rebootmgr/
[coverage:report]
show_missing = true
skip_covered = true
# Static Code Analysis
[flake8]
application-import-names = rebootmgr
count = true
import-order-style = edited
max-complexity = 16
statistics = true