Merge "Reduce the scope of yamllints coverage"

This commit is contained in:
Jenkins 2016-10-19 08:18:01 +00:00 committed by Gerrit Code Review
commit f514a93082
2 changed files with 13 additions and 1 deletions

8
.yamllint Normal file
View File

@ -0,0 +1,8 @@
---
rules:
line-length:
# Allow some of our longer URLs
max: 90
allow-non-breakable-words: yes # Default
allow-non-breakable-inline-mappings: no # Default
truthy: disable

View File

@ -10,7 +10,11 @@ setenv = VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/test-requirements.txt
[testenv:linters]
commands = yamllint .
whitelist_externals = bash
commands = bash -c "find {toxinidir} \
\( -name .tox -prune \) \
-o -type f -name '*.yaml' \
-print0 | xargs -0 yamllint"
{toxinidir}/tools/check_projects_yaml_alphabetized.sh
[testenv:venv]