So now this is sort-of Black for YAML files. Next, pre-commit hooks.
So now it can be used as a pre-commit hook, validating and nicely formatting YAML files. Hurray!