package/python-yamllint: new package

This host package is needed since u-boot 2024.04 for building ti defconfigs.

This is an requirement for using buildman/binman [1].

[1] https://source.denx.de/u-boot/u-boot/-/blob/v2024.04/tools/buildman/requirements.txt?ref_type=tags#L3

Signed-off-by: Heiko Thiery <heiko.thiery@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
Heiko Thiery
2024-04-12 07:53:57 +02:00
committed by Yann E. MORIN
parent 7fa769dae3
commit 2258fc413a
6 changed files with 51 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
# example form https://yamllint.readthedocs.io/en/stable/development.html
from yamllint import (config, linter)
data = '''---
- &anchor
foo: bar
- *anchor
'''
yaml_config = config.YamlLintConfig("extends: default")
for p in linter.run(data, yaml_config):
print(p.desc, p.line, p.rule)