[tox]
envlist = flake8,nose
skipsdist = True

[testenv]
base_python = python3
setenv = VIRTUAL_ENV={envdir}
         PYTHONHASHSEED=0
usedevelop = True
deps = -r{toxinidir}/requirements.txt
       -r{toxinidir}/test-requirements.txt
install_command = pip install {opts} {packages}

[testenv:flake8]
commands = flake8 {posargs}

[testenv:nose]
commands = nosetests -v --with-coverage --cover-package=ubuntutools {posargs:ubuntutools}

[flake8]
verbose = 2
max-line-length = 99
extend-exclude = ubuntu-archive-assistant,ubuntu_archive_assistant