From 906a424d56e0aac39d9f367d41401efd44062d4b Mon Sep 17 00:00:00 2001 From: Reto Gantenbein Date: Mon, 17 Jun 2024 08:45:03 +0200 Subject: [PATCH 1/3] yamllint: Update rules for ansible-lint --- .yamllint | 40 +++++++++++++--------------------------- 1 file changed, 13 insertions(+), 27 deletions(-) diff --git a/.yamllint b/.yamllint index 8827676..0e219de 100644 --- a/.yamllint +++ b/.yamllint @@ -1,33 +1,19 @@ --- -# Based on ansible-lint config extends: default - rules: + truthy: disable + # ansible-lint compatibility + # https://ansible.readthedocs.io/projects/lint/rules/yaml/#yamllint-configuration braces: + min-spaces-inside: 0 max-spaces-inside: 1 - level: error - brackets: - max-spaces-inside: 1 - level: error - colons: - max-spaces-after: -1 - level: error - commas: - max-spaces-after: -1 - level: error - comments: disable - comments-indentation: disable + comments: + min-spaces-from-content: 1 + comments-indentation: false document-start: disable - empty-lines: - max: 3 - level: error - hyphens: - level: error - indentation: disable - key-duplicates: enable - line-length: disable - new-line-at-end-of-file: disable - new-lines: - type: unix - trailing-spaces: disable - truthy: disable + line-length: + max: 120 + level: warning + octal-values: + forbid-implicit-octal: true + forbid-explicit-octal: true From 55790834e32071efb337e89fda9584e6ebeaa390 Mon Sep 17 00:00:00 2001 From: Reto Gantenbein Date: Mon, 17 Jun 2024 08:47:56 +0200 Subject: [PATCH 2/3] molecule: Fix yamllint 'wrong indentation' --- molecule/podman/collections.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/molecule/podman/collections.yml b/molecule/podman/collections.yml index 129e5bf..e2b522d 100644 --- a/molecule/podman/collections.yml +++ b/molecule/podman/collections.yml @@ -1,3 +1,3 @@ --- collections: -- community.crypto + - community.crypto From 8bfec9ad798df978367d239917b43177231e51d9 Mon Sep 17 00:00:00 2001 From: Reto Gantenbein Date: Mon, 17 Jun 2024 08:56:46 +0200 Subject: [PATCH 3/3] github-workflows: Fix yamllint 'line too long' --- .github/workflows/release.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a65eb88..9218c1a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -36,4 +36,6 @@ jobs: run: pip3 install ansible-base - name: Trigger a new import on Galaxy. - run: ansible-galaxy role import --api-key ${{ secrets.GALAXY_API_KEY }} $(echo ${{ github.repository }} | cut -d/ -f1) $(echo ${{ github.repository }} | cut -d/ -f2) + run: > + ansible-galaxy role import --api-key ${{ secrets.GALAXY_API_KEY }} $(echo ${{ github.repository }} + | cut -d/ -f1) $(echo ${{ github.repository }} | cut -d/ -f2)