yamlfix
yamlfix copied to clipboard
A simple opinionated yaml formatter that keeps your comments!
With the following YAML: ```yaml esphome: name: test-esp # atom-bluetooth-proxy friendly_name: Test ESP # Bluetooth Proxy # name_add_mac_suffix: true project: name: esphome.bluetooth-proxy version: "1.0" ``` `version` value is replaced by...
First of all, thank you for this fantastic tool! Now to the issue :) ## Description When the yaml file is organized in a certain way, yamlfix generates invalid YAML...
## Description I'd like to have a CI check that yamlfix has been run by the dev. A lot of the rest of my CI infrastructure expects a nonzero exit...
## Description When `explicit_start` is set to `false`, yamlfix strips all document separators from a file, potentially breaking it. ## Steps to reproduce Consider the following file with two documents...
## Description It seems to be that yamlfix squashes comments in { }, for example: test.yaml: ``` --- apiVersion: v1 metadata: annotations: { a : b, # test # #...
## Description and Current Behavior `yamlfix` turns ```yaml --- jobs: run_jobs: steps: - name: Upload coverage to Codecov with: files: ./projects/aaaaaaaaaaaaaaaaa/ws/build/formation_planner/coverage.xml, ./projects/aaaaaaaaaaaaaaaaa/ws/build/aaaaaaaaaaaaaaaaa_abc/coverage.xml, ./projects/bbbb_examples/ws/build/bbbb_examples/coverage.xml, ./projects/ccccccccccccccccccc/ws/build/diagnose_repair/coverage.xml, projects/aaaaaaaaaaaaaaaaa/ws/build/aaaaaaaaaaaaaaaaa_abc/coverage.xml, ./ws/build/abcd_abc/coverage.xml, ./ws/build/bbbb_bbbbter/coverage.xml, ./ws/build/abcd_abc_wrappers/coverage.xml ``` into...
## Description It would be great to have a feature like that of `export YAMLFIX_SEQUENCE_STYLE="flow_style"`, but for mappings. Possibly, `export YAMLFIX_MAPPING_STYLE="flow_style"` ## Possible Solution Set to true (flow-style): ```yaml ---...
## Description yamlfix crashes when run. ## Steps to reproduce - pip install yamlfix - git clone https://github.com/GoogleCloudPlatform/pubsec-declarative-toolkit - cd pubsec-declarative-toolkit - yamlfix . ## Current behavior Crashes. ``` [+]...
Hi, running `yamlfix 1.16.0` with default configuration once yields different results then running it twice for the following input: ``` # version: "1.0" # # test: files: ``` E.g. ```...
Hi all, right now I'm not using this project and don't have the time to maintain it, I plan to start using it again in the future so I'll probably...