Skip to content

Commit

Permalink
Merge pull request #33 from ganto/feature/yamllint
Browse files Browse the repository at this point in the history
Fix yamllint
  • Loading branch information
ganto authored Jun 17, 2024
2 parents d303cd5 + 8bfec9a commit fb2dfe1
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 29 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
40 changes: 13 additions & 27 deletions .yamllint
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion molecule/podman/collections.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
collections:
- community.crypto
- community.crypto

0 comments on commit fb2dfe1

Please sign in to comment.