yamlfix
yamlfix copied to clipboard
A simple opinionated yaml formatter that keeps your comments!
Fixes #183 Adds a temporary key to the document at the start and removes it again after ruyaml ran through, preventing it from removing the comments in a comment-only yaml...
This fixes #202 ## Checklist * [x] Add test cases to all the changes you introduce * [x] Update the documentation for the changes
yaml ignores underscores in numbers, so these are equivalent. I use the underscores for readability with large numbers. It'd be nice to have this as an option in yamlfix. ```yaml...
## Description yamlfix has a couple of fixers that operate on string replacement basis and there could be cases where those fixers mangle the yaml files or change them in...
## Description Add ability to print changes on stdout for pipelines ## Possible Solution Preferably would add to `--check` to output the changes, so that can be consumed and added...
## Description In https://github.com/lyz-code/yamlfix/pull/189 @marcules is implementing the configuration of yamlfix through file, commandline arguments and environment variables. It will be interesting to be able to override the configuration in...
## Description Currently dict entries and sequence / list elements are not sorted. It would be nice to have two configuration options to sort dict entries and list elements alphabetically....
## Description Hash inside quote should not be modified ## Steps to reproduce Create a file `tmp1.yaml` with the following ``` - "key #1": "value #2" ``` Run yamlfix on...
## Description If you want to use include or exclude filter defined in your pyproject... it won't be applied ## Steps to reproduce Add this section in your pyproject.toml ```...
The current release (1.16.0/47039c9) breaks multiline strings. See: ``` $ git clone [email protected]:SovereignCloudStack/hardware-landscape.git $ git checkout improve_yaml $ make lint-fix .. . $ make lint-fix ... ./environments/custom/roles/scs-serial-terminals/tasks/main.yml [+] YamlFix: Fixing...