-
Notifications
You must be signed in to change notification settings - Fork 9
/
tox.ini
59 lines (52 loc) · 1.52 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
[tox]
skipsdist = True
envlist = lint,unit
[flake8]
max-line-length = 88
[testenv]
setenv =
PYTHONPATH={toxinidir}:{toxinidir}/lib
PYTHONBREAKPOINT=ipdb.set_trace
[testenv:unit]
deps =
pyyaml
pytest
pytest-mock
ipdb
git+https://github.com/juju-solutions/charms.unit_test/#egg=charms.unit_test
# tox3 only passes through the upper-case versions by default, but some
# programs, such as wget or pip, only honor the lower-case versions
passenv =
http_proxy
https_proxy
no_proxy
commands = pytest --tb native -s {posargs} {toxinidir}/tests/unit
[testenv:validate-wheelhouse]
deps =
# Temporarily pin setuptools to avoid the breaking change from 58 until
# all dependencies we use have a chance to update.
# See: https://setuptools.readthedocs.io/en/latest/history.html#v58-0-0
# and: https://github.com/pypa/setuptools/issues/2784#issuecomment-917663223
setuptools<58
allowlist_externals = {toxinidir}/tests/validate-wheelhouse.sh
commands = {toxinidir}/tests/validate-wheelhouse.sh
[testenv:format]
deps =
black
commands =
black {toxinidir}/lib {toxinidir}/reactive {toxinidir}/tests
[testenv:lint]
deps =
flake8
black
commands =
flake8 {toxinidir}/lib {toxinidir}/reactive {toxinidir}/tests
black --check {toxinidir}/lib {toxinidir}/reactive {toxinidir}/tests
[testenv:integration]
deps =
pytest
pytest-operator
juju
kubernetes
ipdb
commands = pytest --tb native --asyncio-mode=auto --show-capture=no --log-cli-level=INFO -s {posargs} {toxinidir}/tests/integration