mixs icon indicating copy to clipboard operation
mixs copied to clipboard

YAML and LinkML auto-formatting and enumeration auto-describing

Open turbomam opened this issue 1 year ago • 3 comments

This PR adds a mechanism for

  • normalizing the YAML format of mixs.yaml
  • using a succinct LinkML for for dictionaries like prefixes
  • omitting inferrable meatslots like the text of permissible values

It also inherits auto-describing of any enum that lacks a description from

  • #872

For future discussion:

  • [ ] do we want empty curly brackets for keys without values?
  • [ ] be careful about patterns that are longer than the current max line length , 79 -what technology should we use to check that?
  • [ ] how to visualize the changes from yamlfmt (or the previous steps?)

turbomam avatar Oct 08 '24 20:10 turbomam

@turbomam to split it out into 2 PRs.

sujaypatil96 avatar Oct 16 '24 17:10 sujaypatil96

More autoformatting the better! Does this then occur/get applied during GitHub actions validation?

jfy133 avatar Nov 29 '24 13:11 jfy133

src/scripts/describe_enums_by_slots_using.py can be eliminated thanks to the new type-ignoring linkml linter

turbomam avatar Apr 22 '25 03:04 turbomam