mirror of
https://github.com/randybb/esphome-configs.git
synced 2026-03-03 07:14:10 +01:00
- yamllint on all YAML files with ESPHome-friendly rules (allows True/False, long lines for lambdas, no forced document-start) - ESPHome config validation on changed mcu-*.yaml files per push/PR Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
23 lines
548 B
YAML
23 lines
548 B
YAML
extends: default
|
|
|
|
rules:
|
|
# ESPHome uses True/False (Python style) and yes/no
|
|
truthy:
|
|
allowed-values: ["true", "false", "True", "False", "yes", "no"]
|
|
check-keys: false
|
|
|
|
# Lambdas and long substitutions can exceed 80 chars
|
|
line-length:
|
|
max: 200
|
|
level: warning
|
|
|
|
# Not all files use --- document start marker
|
|
document-start: disable
|
|
|
|
# Some files have trailing spaces; warn only
|
|
trailing-spaces: enable
|
|
|
|
# Allow comments without a space after # in some cases (e.g. # noqa)
|
|
comments:
|
|
min-spaces-before-comment: 1
|