Skip to content

Commit

Permalink
add hook "yamllint"
Browse files Browse the repository at this point in the history
  • Loading branch information
apmilko committed May 13, 2024
1 parent ee83f72 commit 709b4c8
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ repos:
- id: mixed-line-ending
- id: trailing-whitespace

# YAML linter
- repo: https://github.com/adrienverge/yamllint
rev: v1.35.1
hooks:
- id: yamllint
exclude: ^.clang-tidy$
args: [--strict, -d, ".yamllint-config.yaml"]

# CMake linter and formatter
- repo: https://github.com/cheshirekow/cmake-format-precommit
rev: v0.6.10
Expand Down
17 changes: 17 additions & 0 deletions .yamllint-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
rules:
line-length:
max: 120

quoted-strings:
quote-type: double
required: false

braces:
min-spaces-inside: 1
max-spaces-inside: 1
min-spaces-inside-empty: 0
max-spaces-inside-empty: 0

brackets:
min-spaces-inside-empty: 0
max-spaces-inside-empty: 0

0 comments on commit 709b4c8

Please sign in to comment.