The "v1" of the YAML-to-Python generator is due to be released. It is a bit rough around the edges in terms of generating Pythonic code, so this is a list of potential issues described in #1444, roughly listed in low-to-high effort order:
- Split long parameter value strings
- Generate arguments in dict format
- Generate script-decorated functions for
script templates using a Python image/command
Completed:
The "v1" of the YAML-to-Python generator is due to be released. It is a bit rough around the edges in terms of generating Pythonic code, so this is a list of potential issues described in #1444, roughly listed in low-to-high effort order:
scripttemplates using a Python image/commandCompleted:
UpdateCompleted in Format Python code output from Hera CLI using black #1465invocatorcontext name to usesteps/dag/container_setSkip trailing comma to allow formatter to decide whether to collapse list of args into one lineCompleted in Format Python code output from Hera CLI using black #1465SkipCompleted in fix(cli): omit default workflow params in generated Python #1592api_versionandkindin theWorkflowparamsSort Python arguments using the same algorithm as YAML keys (Completed in fix(cli): sort generated Python kwargs for readability #1593namefirst, then basic types, then lists/dicts)