Skip to content

Lint: Warn-if Jinja2 in Cylc comment #5226

@wxtim

Description

@wxtim

Summary

In Cylc config files Jinja2 in comments is evaluated. This may or may not be what the user wants and is more likely than not to be an unexpected behavior.

Seealso: cylc/cylc-textmate-grammar#36 (review)

Desired behaviour:

#!jinja2
# flow.cylc file
{% set X = 41 %}
# {% set X = 42 %}
...
cylc lint .
WARNING: 4: Jinja2 in "# {% set X = 42 %}" will be evaluated

Pull requests welcome!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions