Skip to content

Use Jinja2 to generate job scripts #338

Description

@wtbarnes

Currently, each job script is generated by a combination of old-style (i.e. not f-strings) string interpolation and joining of lists of strings. Using a templating language like Jinja would simplify this approach and offload the string formatting to a separate file.

It looks like the possibility of using jinja2 was discussed in #321 and #133. Is there a consensus on whether this is a good idea? It would certainly clean up some of the code, but maybe at the cost of readability as it would offload a lot of the logic (e.g. whether to include certain flags/options) to a different file.

If there's interest in this approach, I'd be happy to take a crack at it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions