Consider features in enclosed patch
lucasgonze opened this issue · 4 comments
For my own purposes (passing my projects yamllint configuration) I have implemented a feature to configure the yaml output formatting. To do that I upgraded the version of the yaml package to 2.x and added a little bit of code. My patches aren't polished enough for you to merge without conversation, so I'm attaching a diff rather than submitting a PR.
You would probably want new CLI parameters for custom configuration rather than hard-coding like I did here.
@lucasgonze Thanks for sharing. I agree that we should allow --yaml-line-width
and --yaml-null-str
as CLI parameters. Apart from that this looks like a good patch
I will implement these changes:
- Upgrade YAML to 2.x
- Add --yaml-line-width CLI parameter
- Add --yaml-null-str CLI parameter
- Bump minor version of pin-github-action
As this is a new feature, please bump the minor version of pin-github-action
Note for future documentation: these options correspond to https://eemeli.org/yaml/#tostring-options