-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
bugSomething isn't workingSomething isn't workingsuppressionRelated to supression of violations e.g. noqaRelated to supression of violations e.g. noqa
Description
(ruff=v0.0.267).
Based on the docs we can add a noqa annotation to a multi-line string as follows:
"""
Some long
string.
""" # noqa
I would assume this should also be true if the string is a variable, but the noqa annotation seems to be ignored in that case.
Minimal example:
weirdly_Cased: str = """
Some long
string.
""" # noqa: N816
Ruff outputs:
N816 Variable `weirdly_Cased` in global scope should not be mixedCase
RUF100 [*] Unused `noqa` directive (unused: `N816`)
Possible that this case is deliberately not supported yet but figured I'd flag it. Thanks!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingsuppressionRelated to supression of violations e.g. noqaRelated to supression of violations e.g. noqa