You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you run cylc lint and it finds multiple .cylc files, it will want a #!jinja2 line at the top of each of them if it detects jinja2 in there. Is this required, or should it only be required in the flow.cylc file? Looking at #4917 - that reads as though it should be like I suggest, only for the top level file.
Cylc lint is meant to be agnostic of what the top-level file is - unlike Cylc validate it's meant to look at all .cylc files, without paying attention to what is and is not included - this is to prevent issues cropping up later if an include is switched on.
I think, however, that it's probably reasonable to assume that if the top-level flow.cylc has a Jinja2 shebang then jinja2 is legitimate in all other files. If @oliver-sanders agrees with this assumption, I'll work out how to do it.
Description
If you run
cylc lint
and it finds multiple.cylc
files, it will want a#!jinja2
line at the top of each of them if it detects jinja2 in there. Is this required, or should it only be required in theflow.cylc
file? Looking at #4917 - that reads as though it should be like I suggest, only for the top level file.Reproducible Example
Expected Behaviour
No warning as it is not the
flow.cylc
file.The text was updated successfully, but these errors were encountered: