38 lines
656 B
INI
38 lines
656 B
INI
[tox]
|
|
minversion = 1.9
|
|
skipsdist = True
|
|
recreate = True
|
|
|
|
envlist =
|
|
# list of all CI packages
|
|
ci_common_utils
|
|
ci_credentials
|
|
|
|
|
|
[base]
|
|
deps =
|
|
-e{toxinidir}/{envname}[tests]
|
|
pytest~=6.2.5
|
|
flake8==4.0.1
|
|
pyproject-flake8
|
|
|
|
[testenv]
|
|
# required for the `commands`.
|
|
changedir = {toxinidir}/{envname}
|
|
setupdir = {toxinidir}
|
|
usedevelop = False
|
|
|
|
deps =
|
|
{[base]deps}
|
|
setenv =
|
|
PYTHONPATH = {toxinidir}/{envname}:{toxinidir}/ci_common_utils
|
|
|
|
# add the quiet option
|
|
install_command = pip --quiet install {opts} {packages}
|
|
|
|
commands =
|
|
pflake8 --config {toxinidir}/../pyproject.toml {toxinidir}/{envname}
|
|
pytest
|
|
|
|
|