This includes: * project templates and jobs for charm projects to use * linter for this repo Change-Id: Id7be6711513f42aedd5aba841f9b19652540e8cf
24 lines
662 B
INI
24 lines
662 B
INI
[tox]
|
|
minversion = 3.2.0
|
|
skipsdist = True
|
|
envlist = linters
|
|
|
|
[testenv]
|
|
basepython = python3
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
|
|
[testenv:linters]
|
|
whitelist_externals = bash
|
|
setenv =
|
|
ANSIBLE_ROLES_PATH={env:ANSIBLE_ROLES_PATH:{toxinidir}/.cache/ansible-lint/opendev/base-jobs/roles:{toxinidir}/.cache/ansible-lint/opendev/system-config/roles:{toxinidir}/.cache/ansible-lint/zuul/zuul-jobs/roles:{toxinidir}/.cache/ansible-lint/openstack/openstack-zuul-jobs/roles}
|
|
commands =
|
|
flake8 {posargs}
|
|
{toxinidir}/tools/ansible-lint-roles-cache.sh
|
|
ansible-lint
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[flake8]
|
|
exclude = .venv,.tox,dist,doc,build,*.egg,.cache
|