Development yamllint provides both a script and a Python module. The latter can be used to write your own linting tools: yamllint.linter