diff --git a/.yamllint b/.yamllint new file mode 100644 index 000000000..a5e71f9d0 --- /dev/null +++ b/.yamllint @@ -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 diff --git a/tox.ini b/tox.ini index 16e1d5805..67081b3c5 100644 --- a/tox.ini +++ b/tox.ini @@ -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]