Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

chore(hooks): add yamllint for YAML style enforcement (#3233)

LearningCircuit6812bb695b44
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index c4b3d8c265..27d6affdaa 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -15,6 +15,12 @@ repos:
# caused constant merge conflicts and 173 KB of churn. gitleaks uses
# path/regex-based allowlists (.gitleaks.toml) that are stable across
# line changes. Additional CI coverage: Semgrep (p/secrets), Bearer (secrets).
+- repo: https://github.com/adrienverge/yamllint
+ rev: v1.37.0
+ hooks:
+ - id: yamllint
+ args: ['-c', '.yamllint.yaml']
+ exclude: cookiecutter-docker/.*
- repo: https://github.com/gitleaks/gitleaks
rev: v8.30.0
hooks:
diff --git a/.yamllint.yaml b/.yamllint.yaml
new file mode 100644
index 0000000000..e4caa87704
--- /dev/null
+++ b/.yamllint.yaml
@@ -0,0 +1,28 @@
+---
+extends: default
+
+rules:
+ line-length:
+ max: 400
+ allow-non-breakable-words: true
+ allow-non-breakable-inline-mappings: true
+ truthy:
+ allowed-values: ['true', 'false', 'on', 'off']
+ check-keys: false
+ comments:
+ require-starting-space: true
+ ignore-shebangs: true
+ min-spaces-from-content: 1
+ comments-indentation: disable
+ document-start: disable
+ indentation:
+ spaces: consistent
+ indent-sequences: whatever
+ empty-lines:
+ max: 2
+ hyphens:
+ max-spaces-after: 3
+ brackets:
+ max-spaces-inside: 1
+ braces:
+ max-spaces-inside: 1