From b739aff830a4a774c1ef049fe0b70f2d2c3e3ddd Mon Sep 17 00:00:00 2001 From: Aaron Guise Date: Thu, 22 Aug 2024 15:30:35 +1200 Subject: [PATCH] =?UTF-8?q?fix:=20Linting=20added=20yamllint=20config=20?= =?UTF-8?q?=F0=9F=9A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/CI.yml | 6 ++++-- .yamllint | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+), 2 deletions(-) create mode 100644 .yamllint diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 0d838ca..a499bb3 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -45,7 +45,7 @@ jobs: uses: actions/setup-python@v5 with: python-version: '3.10' - cache: 'pip' # caching pip dependencies + cache: 'pip' # caching pip dependencies - name: Ensure requirements are installed run: pip install -r requirements.txt - name: Run Molecule tests. @@ -88,7 +88,9 @@ jobs: priority: 4 tags: +1,partying_face,action,successfully,completed details: Workflow has been successfully completed! - icon: 'https://styles.redditmedia.com/t5_32uhe/styles/communityIcon_xnt6chtnr2j21.png' + icon: > + https://styles.redditmedia.com/ + t5_32uhe/styles/communityIcon_xnt6chtnr2j21.png image: true - name: ntfy-failed-notifications diff --git a/.yamllint b/.yamllint new file mode 100644 index 0000000..ec4f77b --- /dev/null +++ b/.yamllint @@ -0,0 +1,36 @@ +--- +# Based on ansible-lint config +extends: default +skip_list: + - fqcn-builtins + - role-name + +rules: + braces: + 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: enable + comments-indentation: disable + 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: enable + new-lines: + type: unix + trailing-spaces: disable + truthy: disable