mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-30 14:01:57 -09:00
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:
committed by
Yann E. MORIN
parent
7fa769dae3
commit
2258fc413a
13
support/testing/tests/package/sample_python_yamllint.py
Normal file
13
support/testing/tests/package/sample_python_yamllint.py
Normal 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)
|
||||
11
support/testing/tests/package/test_python_yamllint.py
Normal file
11
support/testing/tests/package/test_python_yamllint.py
Normal file
@@ -0,0 +1,11 @@
|
||||
from tests.package.test_python import TestPythonPackageBase
|
||||
|
||||
|
||||
class TestPythonYamllint(TestPythonPackageBase):
|
||||
__test__ = True
|
||||
config = TestPythonPackageBase.config + \
|
||||
"""
|
||||
BR2_PACKAGE_PYTHON3=y
|
||||
BR2_PACKAGE_PYTHON_YAMLLINT=y
|
||||
"""
|
||||
sample_scripts = ["tests/package/sample_python_yamllint.py"]
|
||||
Reference in New Issue
Block a user