-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
46 lines (40 loc) · 927 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
45
46
[tox]
skipsdist=True
envlist = unit
skip_missing_interpreters = True
[testenv]
basepython = python3
setenv =
PYTHONPATH = .
[testenv:unit]
commands =
pytest \
--ignore {toxinidir}/tests/integration \
{posargs:-v --cov=lib --cov=reactive --cov=actions --cov-branch --cov-report=term-missing --cov-report=html}
deps = -r{toxinidir}/tests/unit/requirements.txt
-r{toxinidir}/requirements.txt
setenv =
PYTHONPATH={toxinidir}/lib
TZ=UTC
[testenv:integration]
commands = pytest -v --ignore {toxinidir}/tests/unit \
--log-cli-level=INFO {posargs}
deps = pytest
pytest-operator
pytest-asyncio
PyYAML
requests
[testenv:black]
commands = black --skip-string-normalization --line-length=120 .
deps = black
[testenv:lint]
commands = flake8
deps = flake8
[flake8]
exclude =
.git,
.tox,
__pycache__,
build,
max-line-length = 120
max-complexity = 10