Add site-package yamllint to inspect YAML/YML files for errors.
pip install –user yamllint
Yamllint has two default configuration files: default.yaml and relaxed.yaml with pre-set rules. Can extend a configuration file and alter one of the rules.
# Mylint.yaml is my own configuration file for yamllint
# It extends the default.yaml by adjusting some options.
Did this to avoid the error about the EOL character on the first line (—).
1:4 error wrong new line character: expected \n (new-lines)