-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix S011 lint #5536
Fix S011 lint #5536
Conversation
Thanks @ColemanTom Can you rebase this commit onto 8.1.x please? |
Ok. I didn't notice it was automatically going against |
Cylc does not parse Jinja2 when inside a Jinja2 comment.
Sorry, not the best explained. We use a semver approach to avoid letting risky changes through in bugfix releases.
For something like this there's very little risk so we might as well get it into 8.1.5 rather than waiting around for 8.2.0. (note, we routinely merge the bugfix branch into master to pull in these bugfixes) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ronnie's Change is probably a good idea, otherwise, I'm happy with this.
FYI: I've added some more detail to the CONTRIBUTING here: #5548 |
Adopt suggestion from @MetRonnie to reduce fragility. Co-authored-by: Ronnie Dutta <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. One faintly off-piste question for the dev team.
Co-authored-by: Hilary James Oliver <[email protected]>
…github.com:wxtim/cylc into fix.sort_lint_listing--correct_number_for_line_len * 'fix.sort_lint_listing--correct_number_for_line_len' of github.com:wxtim/cylc: `cylc play`: add suggestion for `--upgrade` in non-interactive terminal (cylc#5535) centralize number used for line length check. Respond to review Fix cylc lint commented-out Jinja2 bug Logging: say command actioned instead of succeeded cylc lint non zero code from warnings (cylc#5546) Fix S011 lint (cylc#5536)
The linter suggests that Cylc parses Jinja2 when it is commneted, which I agree with. However if it is a Jinja2 comment wrapping Jinja2 , then it will parse the comment and ignore the inside. It should not be a warning.
Check List
CONTRIBUTING.md
and added my name as a Code Contributor.setup.cfg
(andconda-environment.yml
if present).CHANGES.md
entry included if this is a change that can affect users?.?.x
branch.