From 47c32a7f361857a6fff1f3812da762275ecbf0cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20Verg=C3=A9?= Date: Sun, 24 Jan 2016 19:14:48 +0100 Subject: [PATCH] Lint YAML files 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 --- reference/projects.yaml | 271 ++++++++++++++++++++-------------------- test-requirements.txt | 1 + tox.ini | 1 + 3 files changed, 138 insertions(+), 135 deletions(-) diff --git a/reference/projects.yaml b/reference/projects.yaml index 72995cf44..a054f0c8f 100644 --- a/reference/projects.yaml +++ b/reference/projects.yaml @@ -242,10 +242,10 @@ cinder: repos: - openstack/python-brick-cinderclient-ext tags: - - release:cycle-with-intermediary - - release:has-stable-branches - - type:library - - release:managed + - release:cycle-with-intermediary + - release:has-stable-branches + - type:library + - release:managed python-cinderclient: repos: - openstack/python-cinderclient @@ -2726,140 +2726,141 @@ oslo: - release:managed Packaging-deb: - ptl: + ptl: name: Thomas Goirand irc: zigo email: zigo@debian.org - mission: > - Maintain packages for Debian (and other deb based distributions) as a community. - tags: - - team:single-vendor - deliverables: - deb-openstack-pkg-tools: - repos: - - openstack/deb-openstack-pkg-tools - tags: - - release:none - deb-ceilometer: - repos: - - openstack/deb-ceilometer - tags: - - release:none - deb-ceilometermiddleware: - repos: - - openstack/deb-ceilometermiddleware - tags: - - release:none - deb-cinder: - repos: - - openstack/deb-cinder - tags: - - release:none - deb-designate: - repos: - - openstack/deb-designate - tags: - - release:none - deb-designate-dashboard: - repos: - - openstack/deb-designate-dashboard - tags: - - release:none - deb-glance: - repos: - - openstack/deb-glance - tags: - - release:none - deb-heat: - repos: - - openstack/deb-heat - tags: - - release:none - deb-horizon: - repos: - - openstack/deb-horizon - tags: - - release:none - deb-ironic: - repos: - - openstack/deb-ironic - tags: - - release:none - deb-keystone: - repos: - - openstack/deb-keystone - tags: - - release:none - deb-mistral: - repos: - - openstack/deb-mistral - tags: - - release:none - deb-mistral-dashboard: - repos: - - openstack/deb-mistral-dashboard - tags: - - release:none - deb-murano: - repos: - - openstack/deb-murano - tags: - - release:none - deb-murano-dashboard: - repos: - - openstack/deb-murano-dashboard - tags: - - release:none - deb-neutron: - repos: - - openstack/deb-neutron - tags: - - release:none - deb-neutron-fwaas: - repos: - - openstack/deb-neutron-fwaas - tags: - - release:none - deb-neutron-lbaas: - repos: - - openstack/deb-neutron-lbaas - tags: - - release:none - deb-neutron-vpnaas: - repos: - - openstack/deb-neutron-vpnaas - tags: - - release:none - deb-nova: - repos: - - openstack/deb-nova - tags: - - release:none - deb-rally: - repos: - - openstack/deb-rally - tags: - - release:none - deb-sahara: - repos: - - openstack/deb-sahara - tags: - - release:none - deb-swift: - repos: - - openstack/deb-swift - tags: - - release:none - deb-tempest: - repos: - - openstack/deb-tempest - tags: - - release:none - deb-trove: - repos: - - openstack/deb-trove - tags: - - release:none + mission: > + Maintain packages for Debian (and other deb based distributions) as a + community. + tags: + - team:single-vendor + deliverables: + deb-openstack-pkg-tools: + repos: + - openstack/deb-openstack-pkg-tools + tags: + - release:none + deb-ceilometer: + repos: + - openstack/deb-ceilometer + tags: + - release:none + deb-ceilometermiddleware: + repos: + - openstack/deb-ceilometermiddleware + tags: + - release:none + deb-cinder: + repos: + - openstack/deb-cinder + tags: + - release:none + deb-designate: + repos: + - openstack/deb-designate + tags: + - release:none + deb-designate-dashboard: + repos: + - openstack/deb-designate-dashboard + tags: + - release:none + deb-glance: + repos: + - openstack/deb-glance + tags: + - release:none + deb-heat: + repos: + - openstack/deb-heat + tags: + - release:none + deb-horizon: + repos: + - openstack/deb-horizon + tags: + - release:none + deb-ironic: + repos: + - openstack/deb-ironic + tags: + - release:none + deb-keystone: + repos: + - openstack/deb-keystone + tags: + - release:none + deb-mistral: + repos: + - openstack/deb-mistral + tags: + - release:none + deb-mistral-dashboard: + repos: + - openstack/deb-mistral-dashboard + tags: + - release:none + deb-murano: + repos: + - openstack/deb-murano + tags: + - release:none + deb-murano-dashboard: + repos: + - openstack/deb-murano-dashboard + tags: + - release:none + deb-neutron: + repos: + - openstack/deb-neutron + tags: + - release:none + deb-neutron-fwaas: + repos: + - openstack/deb-neutron-fwaas + tags: + - release:none + deb-neutron-lbaas: + repos: + - openstack/deb-neutron-lbaas + tags: + - release:none + deb-neutron-vpnaas: + repos: + - openstack/deb-neutron-vpnaas + tags: + - release:none + deb-nova: + repos: + - openstack/deb-nova + tags: + - release:none + deb-rally: + repos: + - openstack/deb-rally + tags: + - release:none + deb-sahara: + repos: + - openstack/deb-sahara + tags: + - release:none + deb-swift: + repos: + - openstack/deb-swift + tags: + - release:none + deb-tempest: + repos: + - openstack/deb-tempest + tags: + - release:none + deb-trove: + repos: + - openstack/deb-trove + tags: + - release:none Packaging-rpm: ptl: diff --git a/test-requirements.txt b/test-requirements.txt index a7e7e1506..11c7aff75 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -2,4 +2,5 @@ sphinx>=1.1.2,!=1.2.0,<1.3 oslosphinx>=2.2.0 # Apache-2.0 PyYAML>=3.1.0 +yamllint>=0.5.2 requests-cache diff --git a/tox.ini b/tox.ini index c6ea84271..f280b2f67 100644 --- a/tox.ini +++ b/tox.ini @@ -18,3 +18,4 @@ commands = python setup.py build_sphinx [testenv:validate] commands = python tools/validate_tags.py + yamllint .