yamllint icon indicating copy to clipboard operation
yamllint copied to clipboard

Implement yamllint in code

Open bpgould opened this issue 2 years ago • 1 comments

I would like to import the package and pass a file to a function to have it lint the file, without using command line.

For example,

import yamllint
linted_file = yamllint.lint('path/to/file.yaml', config, otherArgs)

Can this functionality be exposed in this kind of interface since I am sure this already exists under the hood?

bpgould avatar Apr 08 '22 19:04 bpgould

@bpgould check out the docs for the module

andrewimeson avatar Apr 12 '22 20:04 andrewimeson