- Pin pre-commit ansible-lint hook to ansible-core==2.17.* (was floating, crashed) - Add pre-commit to requirements.txt - Align .yamllint with ansible-lint (comments-indentation off, octal rules on) - Rewrite inventory placeholders to lint-clean empty-group form Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
26 lines
538 B
Text
26 lines
538 B
Text
---
|
|
extends: default
|
|
|
|
rules:
|
|
line-length:
|
|
max: 120
|
|
level: warning
|
|
truthy:
|
|
allowed-values: ['true', 'false']
|
|
check-keys: true
|
|
comments:
|
|
min-spaces-from-content: 1
|
|
braces:
|
|
min-spaces-inside: 0
|
|
max-spaces-inside: 1
|
|
# Aligned with ansible-lint's requirements (it owns comment-indentation via its
|
|
# own yaml rule, and forbids octal ambiguity):
|
|
comments-indentation: false
|
|
octal-values:
|
|
forbid-implicit-octal: true
|
|
forbid-explicit-octal: true
|
|
|
|
ignore: |
|
|
.venv/
|
|
.collections/
|
|
.scaffold/
|