36 lines
638 B
INI
36 lines
638 B
INI
[flake8]
|
|
max-line-length = 88
|
|
|
|
[tox]
|
|
skipsdist = True
|
|
envlist = lint,unit,functional
|
|
|
|
[testenv]
|
|
setenv =
|
|
PYTHONPATH={toxinidir}:{toxinidir}/lib
|
|
PYTHONBREAKPOINT=ipdb.set_trace
|
|
|
|
[testenv:lint]
|
|
deps =
|
|
black
|
|
flake8
|
|
commands =
|
|
flake8 {toxinidir}/lib {toxinidir}/tests
|
|
black --check {toxinidir}/lib {toxinidir}/tests
|
|
|
|
[testenv:unit]
|
|
deps =
|
|
pyyaml
|
|
pytest
|
|
charms.unit_test
|
|
ipdb
|
|
commands = pytest -vv --tb native -s {posargs} {toxinidir}/tests/unit
|
|
|
|
[testenv:functional]
|
|
deps =
|
|
pyyaml
|
|
pytest
|
|
charms.unit_test
|
|
ipdb
|
|
commands = pytest -vv --tb native -s {posargs} {toxinidir}/tests/functional
|