Charmed-Kubernetes/coredns/tox.ini

28 lines
574 B
INI

[flake8]
max-line-length = 88
[tox]
skipsdist = True
envlist = lint,unit
[testenv]
basepython = python3
setenv =
PYTHONPATH={toxinidir}/src
PYTHONBREAKPOINT=ipdb.set_trace
passenv = HOME
deps = pipenv
commands =
pipenv install --dev --ignore-pipfile
pipenv run pytest --tb native -s {posargs:tests/unit}
[testenv:lint]
commands =
pipenv install --dev --ignore-pipfile
pipenv run flake8 {toxinidir}/src {toxinidir}/tests
[testenv:func]
commands =
pipenv install --dev --ignore-pipfile
pipenv run pytest --tb native -s {posargs:tests/func}