47c32a7f36
Currently most OpenStack code is linted, but YAML files are not. This patch enables linting in tox tests using the yamllint tool [1]. It also corrects some indentation misalignments and a line longer than 80 chars; the new CI test will prevent new errors from coming in. [1]: http://yamllint.readthedocs.org/ Change-Id: Ie33e2636be97a09f27e519be185382be82fa19f2
22 lines
450 B
INI
22 lines
450 B
INI
[tox]
|
|
envlist = docs
|
|
minversion = 1.6
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
install_command = pip install -U {opts} {packages}
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:docs]
|
|
commands = python setup.py build_sphinx
|
|
{toxinidir}/tools/check_projects_yaml_alphabetized.sh
|
|
|
|
[testenv:validate]
|
|
commands = python tools/validate_tags.py
|
|
yamllint .
|