is there a way to specify the yaml formatting that...
# getting-started
h
is there a way to specify the yaml formatting that meltano applies automatically. when meltano writes yaml (say after a developer does
meltano add extractor ...
, it will reformat all the configuration to look like this:
Copy code
# before
plugins:
  extractors:
    - name: tap-facebook
# after
plugins:
  extractors:
  - name: tap-facebook
I know the indentation is optional in yaml, but our team prefers the indentation. it's a helpful visual cue. all our other yaml files in other projects all use the 2-space indentation, and we'd love to not have to "fix" the meltano yamls' formatting each time.
v
Pretty certain meltano uses
ruamel
under the hood. I'd guess there's some customization that could be added for indentation handling if you found the settings you liked here https://yaml.readthedocs.io/en/latest/detail/#indentation-of-block-sequences
e