I am having issues pulling from a YAML config file:
Fatal error: while parsing a block mapping; expected <block end>, but found block entry
While there are plenty of online YAML validators, which I have tried and have helped, I'd like to validate my YAML files from the command line and integrate this into my continuous integration pipeline.
How can I validate the syntax of a YAML file on the command line?
travis lint .travis.yml
– kenorbpython -c "from yaml import load, Loader; load(open('.travis.yml'), Loader=Loader)"
– Natim