-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
53 lines (48 loc) · 965 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
47
48
49
50
51
52
53
[flake8]
max-line-length = 99
extend-ignore = E203
select: E,W,F,C,N
exclude:
venv
.git
build
dist
*.egg_info
[tox]
skipsdist = True
envlist = lint,integration,unit
[testenv:format]
deps =
black
commands =
black --line-length 99 {toxinidir}/src {toxinidir}/tests
[testenv:lint]
deps =
black
flake8
commands =
flake8 {toxinidir}/src {toxinidir}/tests
black --line-length 99 --check --diff {toxinidir}/src {toxinidir}/tests
[testenv:unit]
allowlist_externals =
echo
deps =
pytest
pytest-cov
-rrequirements.txt
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}/src:{toxinidir}/lib
commands =
pytest \
--tb native --show-capture=no \
--cov src \
-s {posargs} {toxinidir}/tests/unit
[testenv:integration]
deps =
pytest
pytest-operator
aiohttp
ipdb
lightkube
commands =
pytest --tb native --show-capture=no --log-cli-level=INFO -s {posargs} {toxinidir}/tests/integration