Add yamllint linter to check manifests files

This commit is contained in:
Marcin Engelmann 2018-01-20 10:30:37 +01:00
parent f00c63eaeb
commit af83f645dd
20 changed files with 76 additions and 66 deletions

6
.yamllint Normal file
View file

@ -0,0 +1,6 @@
---
extends: default
rules:
line-length:
max: 160

View file

@ -47,8 +47,8 @@ packages:
pin-priority: 500 pin-priority: 500
plugins: plugins:
google_cloud_repo: google_cloud_repo:
cleanup_bootstrap_key: True cleanup_bootstrap_key: true
enable_keyring_repo: True enable_keyring_repo: true
ntp: ntp:
servers: servers:
- metadata.google.internal - metadata.google.internal

View file

@ -34,8 +34,8 @@ packages:
- vim - vim
plugins: plugins:
google_cloud_repo: google_cloud_repo:
cleanup_bootstrap_key: True cleanup_bootstrap_key: true
enable_keyring_repo: True enable_keyring_repo: true
ntp: ntp:
servers: servers:
- metadata.google.internal - metadata.google.internal

View file

@ -1,5 +1,5 @@
[tox] [tox]
envlist = flake8, unit, integration, docs envlist = flake8, yamllint, unit, integration, docs
[flake8] [flake8]
ignore = E221,E241,E501 ignore = E221,E241,E501
@ -38,3 +38,7 @@ deps =
sphinx != 1.5 sphinx != 1.5
sphinx_rtd_theme sphinx_rtd_theme
commands = sphinx-build -W -b html -d _build/html/doctrees . _build/html commands = sphinx-build -W -b html -d _build/html/doctrees . _build/html
[testenv:yamllint]
deps = yamllint
commands = yamllint manifests