yamlfix
yamlfix copied to clipboard
A simple opinionated yaml formatter that keeps your comments!
## Description technically for a yaml file you are supposed to start it with '---' which you have an option for but you do not have an option for ending...
## Description Many applications have a default user location for their configuration files, such as `$XDG_CONFIG_HOME//config`. That way whenever _yamlfix_ runs, it's not necessary to pass it each time an...
## Description When files contain block strings, yamlfix will squash white space and change the string. ## Current behavior Given the file: ```yaml # original.yml --- key: | # This...
## Description When using this configuration, unicode characters are printed using the escape sequence, rather than the unicode characters itself: ``` quote_basic_values=true quote_representation='"' ``` ## Steps to reproduce Run: ```...
When fixing a file using the Windows Python versions, the line endings change from LF style to CRLF style, and only when there is some other change in the file....
## Description I have a yaml file with this format : ``` name: &alias key *alias: value ``` which correspond to : ``` name: key key: value ``` I have...
## Description Line cropping is not working for comments. ## Steps to reproduce Transform the next document: ```yaml # this_is_a_test: asdfasdfasfd asdf adsfasdfasdfasfd asdfasdfasdfasdfa adsfasdfasfdasdf asdfasdfasdfasdf asdfasdfasdfa asdfasdfasdf asdfasdfads asdfasdfasdf...
Fixing yaml from #217 ## Checklist * [ ] Add test cases to all the changes you introduce * [ ] Update the documentation for the changes
## Description Some yaml files in this repo require fixing. Fix them now and add a pipeline step to check for them later. ## Possible Solution After #215, run `yamlfix...
## Description When changing list style from block to flow, comments are not placed properly. ## Steps to reproduce ```yaml --- list: # Comment - echo "Test" ``` ## Current...