TIL: Fixing YAML
I got tired of manually correcting and prettifying YAML only to run into periodic instances where my cleanup broke configurations. Alas, yamllint
tells you what's wrong but doesn't fix problems. I would rather have an easy-to-use CLI tool that does all the work for me.
Thanks to David Winterbottom for the suggestion.
Step 1: Install yamlfix
pip install yamlfix
Step 2: Recursively clean up all the YAML
yamlfix .

Tags: howto python TIL