-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Preserve formatting if yml already exists #10
Comments
This would be a nice option if we can make it work. I would also like to keep the option to reformat to some basic default formatting like we have now. We use that at Dashlane to make sure our property files are formatted consistently. It looks like the ruamel.yaml package can handle "round-trip" yaml formatting with a few limitations. We currently use PyYAML which does not handle "round-trip" formatting as far as I know. My first idea would be to alter the I'm glad you would like to contribute! I think the best way go about that process is to:
What are your thoughts on of all that? |
The recently merged PR #20 (thanks @ciklista) has addressed the preservation of:
It has not addressed custom indentation schemes. I'll close this issue because a standalone issue (#23) has been created for custom indentation. |
Running dbt-invoke comes at the price of loosing formatting.
Currently,
dbt-invoke properties
squashes and unindentsto
Or re-formats lists (e.g. in tests) from
to
Hence there are three options:
dbt-invoke properties
(Nope out!=)dbt-invoke properties
only to freshly-generated models and update variables list manually (my current approach=/)Request:
To preserve formatting for pieces of documentation are already written in yml
(PS: how can I contribute?)
The text was updated successfully, but these errors were encountered: