Skip to content

Commit

Permalink
chore: added yamllint
Browse files Browse the repository at this point in the history
  • Loading branch information
cbiering committed Dec 19, 2024
1 parent 5091af2 commit ee003a1
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/yamllint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: YAML Lint

on:
pull_request:
branches: [main]

jobs:
yamllint:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: yaml-lint
uses: ibiqlik/action-yamllint@v3
with:
file_or_dir: .
config_file: .yamllint
28 changes: 28 additions & 0 deletions .yamllint
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
extends: default

ignore: |
coverage
node_modules
dist
build
.git
poetry.lock

rules:
line-length:
level: warning
max: 100

brackets:
max-spaces-inside: 1
level: error

quoted-strings:
quote-type: any
required: false
level: warning

trailing-spaces:
level: error
...

0 comments on commit ee003a1

Please sign in to comment.