fix: Linting added yamllint config 🚨
Some checks failed
CI / lint (push) Failing after 14s
CI / Molecule Test (almalinux8) (push) Has been skipped
CI / Molecule Test (almalinux9) (push) Has been skipped
CI / release (push) Has been skipped
CI / notify (push) Has been skipped

This commit is contained in:
2024-08-22 15:30:35 +12:00
parent 8379731580
commit b739aff830
2 changed files with 40 additions and 2 deletions

View File

@@ -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

36
.yamllint Normal file
View File

@@ -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