🧪 Add yamllint to pre-commit config

This commit is contained in:
Sviatoslav Sydorenko
2025-07-22 00:57:46 +02:00
parent ad1ea0f87c
commit 4fcb552d77
2 changed files with 30 additions and 0 deletions
+10
View File
@@ -54,4 +54,14 @@ repos:
- id: python-no-log-warn
- id: rst-backticks
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.37.1
hooks:
- id: yamllint
types:
- file
- yaml
args:
- --strict
...
+20
View File
@@ -0,0 +1,20 @@
---
extends: default
rules:
indentation:
level: error
indent-sequences: false
quoted-strings:
required: only-when-needed
truthy:
allowed-values:
- >-
false
- >-
true
- >- # Allow "on" key name in GHA CI/CD workflow definitions
on
...