use-rattle-ignore-comment

Use an inline or preceding rattle: ignore[...] comment to suppress warnings. Listing rule names prevents unrelated warnings from being suppressed. Rattle does not recognize noqa because it may also affect other linters.

Message

Use rattle: ignore[rule-name]; Rattle does not support noqa.

Valid examples

# rattle: ignore[use-f-string]
"%s" % "hi"
'ab' 'cd'  # rattle: ignore[use-plus-for-string-concat]
fn()  # noqaed by another tool
fn()  # See https://example.test/noqa-policy

Invalid examples

fn() # noqa
fn() # NOQA
# flake8: noqa
fn()  # type: ignore  # noqa
Show more
(
 1,
 2,  # noqa
)
class C:
    # noqa
    ...