2020-06-15 17:47:25 -04:00
|
|
|
[tox]
|
2021-10-24 15:57:27 -07:00
|
|
|
envlist = flake8,pytest
|
2020-06-15 17:47:25 -04:00
|
|
|
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}
|
|
|
|
|
2021-10-24 15:57:27 -07:00
|
|
|
[testenv:pytest]
|
|
|
|
commands = pytest -v --cov=ubuntutools {posargs:ubuntutools}
|
2020-06-15 17:47:25 -04:00
|
|
|
|
|
|
|
[flake8]
|
|
|
|
verbose = 2
|
|
|
|
max-line-length = 99
|