helm-charts/tox.ini
Al Bailey 7071de7903 Adding zuul jobs for new repo
This job adds a single linters tox target.

The linters target is an aggregation of linters for
this repo including:
 - bashate
 - flake8

Note: this repo does not contain any bash or python code,
so those linter checks merely protect against future
additions of those types of files.

Other linters such as yamllint can be added to this
repo by later commits.

This commit also adds basic contributing and hacking docs.

Change-Id: I38531aa125a6004c91a7286eb878eb7b1f188476
Story: 2006166
Task: 36543
Signed-off-by: Al Bailey <Al.Bailey@windriver.com>
2019-09-09 14:27:51 -05:00

44 lines
974 B
INI

[tox]
envlist = linters
minversion = 2.3
skipsdist = True
sitepackages=False
[testenv]
install_command = pip install -U {opts} {packages}
setenv =
VIRTUAL_ENV={envdir}
OS_STDOUT_CAPTURE=1
OS_STDERR_CAPTURE=1
OS_DEBUG=1
OS_LOG_CAPTURE=1
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
whitelist_externals =
bash
[testenv:bashate]
# Treat all E* codes as Errors rather than warnings using: -e 'E*'
commands =
bash -c "find {toxinidir} \
-not \( -type d -name .?\* -prune \) \
-type f \
-not -name \*~ \
-not -name \*.md \
-name \*.sh \
-print0 | xargs -r -n 1 -0 bashate -v \
-e 'E*'"
[flake8]
max-line-length=80
[testenv:flake8]
commands =
flake8
[testenv:linters]
commands =
{[testenv:bashate]commands}
{[testenv:flake8]commands}