Skip to content

Commit

Permalink
Add yamllint with pre-commit (SalamLang#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbampton authored Mar 2, 2024
1 parent b6a614a commit 657c740
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/linters/.yaml-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
# https://yamllint.readthedocs.io/en/stable/
# yamllint --strict -c .github/linters/.yaml-lint.yml .
extends: default

rules:
document-start: disable
line-length: disable
truthy: false
9 changes: 9 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,12 @@ repos:
entry: markdownlint -c .github/linters/.markdown-lint.yml .
types: [markdown]
files: \.md$
- repo: https://github.com/adrienverge/yamllint
rev: v1.35.1
hooks:
- id: yamllint
name: Run yamllint
description: Check YAML files with yamllint
entry: yamllint --strict -c .github/linters/.yaml-lint.yml .
types: [yaml]
files: \.(yml|yaml)$

0 comments on commit 657c740

Please sign in to comment.