Closed denys-kochetkov closed 1 year ago
I think that if you remove the offset definition you will obtain the desired output.
I'll keep this open for a few days to give space for conversion before closing this, as it looks like an already supported feature.
We run pre-commit YAML formatting on our Ansible playbooks with the following configuration:
By default, all sequences are indented, including root-level sequences. So this YAML file:
Is converted to this with two leading whitespaces:
This was addressed in this Stackoverflow question with a custom transform function, would be nice to have something similar here as well.