-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
75 lines (64 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
[tox]
skipsdist = true
envlist =
clean
py3
report
check_flake8
check_black
check_isort
check_mypy
[testenv]
passenv =
SALTEDGE_APP_ID
SALTEDGE_SECRET
SALTEDGE_CUSTOMER_ID
SALTEDGE_CONNECTION_ID
SALTEDGE_PUBLIC_KEY
DISPLAY
setenv =
COVERAGE_FILE = {env:COVERAGE_FILE:{toxworkdir}/.coverage.{envname}}
deps =
-r requirements-dev.txt
commands = pytest --cov -vv budgetsupervisor/
[testenv:clean]
setenv =
COVERAGE_FILE={toxworkdir}/.coverage
skip_install = true
commands = coverage erase
[testenv:report]
setenv =
COVERAGE_FILE={toxworkdir}/.coverage
skip_install = true
commands =
coverage combine
coverage html -d {toxworkdir}/htmlcov
[testenv:run_unit_tests]
passenv = {[testenv]passenv}
commands = {[testenv]commands} -m "not (saltedge or selenium)"
[testenv:run_integration_tests]
passenv = {[testenv]passenv}
commands = {[testenv]commands} -m "saltedge"
[testenv:run_system_tests]
passenv = {[testenv]passenv}
commands = {[testenv]commands} -m "selenium"
[testenv:check_flake8]
basepython = python3
skip_install = True
commands = flake8 budgetsupervisor/
[testenv:check_black]
basepython = python3
skip_install = True
commands = black --check --diff budgetsupervisor/
[testenv:check_isort]
basepython = python3
skip_install = True
commands = isort --check-only --diff budgetsupervisor/
[testenv:check_mypy]
basepython = python3
skip_install = True
commands = mypy budgetsupervisor/
[testenv:run_pre_commit]
basepython = python3
skip_install = True
commands = pre-commit run --all-files