-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
34 lines (29 loc) · 825 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
[flake8]
max-line-length = 88
[tox]
skipsdist = True
envlist = lint,unit,integration
[testenv]
setenv =
PYTHONPATH={toxinidir}:{toxinidir}/lib
PYTHONBREAKPOINT=ipdb.set_trace
[testenv:unit]
deps =
pyyaml
pytest
charms.unit_test
commands = pytest --tb native -s {posargs} {toxinidir}/tests/unit
[testenv:integration]
deps =
# Until 2.8.6 is released
https://github.com/juju/python-libjuju/archive/master.zip#egg=juju
pytest
pytest-operator
commands = pytest --tb native --show-capture=no --log-cli-level=INFO -s {posargs} {toxinidir}/tests/integration
[testenv:lint]
deps =
black
flake8
commands =
flake8 {toxinidir}/reactive {toxinidir}/lib {toxinidir}/tests {toxinidir}/actions
black --check {toxinidir}/reactive {toxinidir}/lib {toxinidir}/tests {toxinidir}/actions