Replies: 4 comments 1 reply
-
|
My general position to questions like this is:
In any case, whatever you come up with, I just want to throw my head in the ring for a |
Beta Was this translation helpful? Give feedback.
-
|
Related issues:
|
Beta Was this translation helpful? Give feedback.
-
|
I'm using prettier for all my projects for YAML and markdown linting (see https://github.com/cthoyt/cookiecutter-snekpack/blob/98fcef2184d26d07ec67bd74f19b984b8c2398e3/%7B%7Bcookiecutter.package_name%7D%7D/justfile#L52-L55 in my cookiecutter repo) i am really skeptical of the python ecosystem of formatters compared to the JS world, which is much bigger and more likely to get maintained. Any python code that used ruamel has been a big pain for me, since it's hard to get that installed and running |
Beta Was this translation helpful? Give feedback.
-
|
Quick comparison here: But IMO doesn't help decide between the options. Ideally there would be a standard but that doesn't seem to be the case, making tool lock-in more likely. It would be useful to see examples of each format, committing to the wrong one could be terrible if it renders yamls semantically correct but unreadable |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
How do you format the yaml of your linkml models? I have recently started experimenting with yamlfix in pid4cat-model. Its GitHub repo contains a pair of configs for yamllint and yamlfix that are consistent if you want to try (
.yamllint.yamland.yamlfix.toml).Other yaml-formatters like prettier, yamlfixer or yamlfmt did not work well for me. I am very interested to hear about your preferred tools for auto-formatting.
Moved here from slack as suggested.
Beta Was this translation helpful? Give feedback.
All reactions