Initial Commit
- initial default booting image
This commit is contained in:
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)
|
||||
Reference in New Issue
Block a user