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
Here, it seems currently not possible to use noqa overrides. Since multiline strings are interpreted as literals, adding a # noqa: 204 at the end would make the YAML parser add # noqa: 204 to the end of the value.
Describe the solution you'd like
I think a desirable route would be having noqa supported next to the list marker:
I am not sure if there is anything in the YAML specification which makes this a bad practice, but it seems to parse fine, and avoids the need for an additional line.
Describe alternatives you've considered
An alternative would be supporting noqa in Jinja comments without spaces, that way it could be kept at the end of the line. However {#- noqa 204 #} makes the line even longer than needed.
Jinja comments with whitespace ({# noqa 204 #}, for example) are already supported, but introduce undesired formatting in the rendered file.
Additional context
n/a
The text was updated successfully, but these errors were encountered:
It is not completely perfect, it would be nice if the noqa would apply to all lines inside the multiline string, not just the first line.
Feedback welcome.
Is your feature request related to a problem? Please describe.
Taking the following pillar as an example:
Here, it seems currently not possible to use
noqa
overrides. Since multiline strings are interpreted as literals, adding a# noqa: 204
at the end would make the YAML parser add# noqa: 204
to the end of the value.Describe the solution you'd like
I think a desirable route would be having
noqa
supported next to the list marker:I am not sure if there is anything in the YAML specification which makes this a bad practice, but it seems to parse fine, and avoids the need for an additional line.
Describe alternatives you've considered
An alternative would be supporting
noqa
in Jinja comments without spaces, that way it could be kept at the end of the line. However{#- noqa 204 #}
makes the line even longer than needed.Jinja comments with whitespace (
{# noqa 204 #}
, for example) are already supported, but introduce undesired formatting in the rendered file.Additional context
n/a
The text was updated successfully, but these errors were encountered: