Skip to content

Unable to in-line suppress RUF102 #23191

@nth10sd

Description

@nth10sd

Summary

bool("a"),  # noqa: FURB123

It throws RUF100 and RUF102.

I ignore RUF100:

bool("a"),  # noqa: FURB123,RUF100

It throws RUF102:

RUF102 [*] Invalid rule code in `# noqa`: FURB123
/snip
335 |                 bool("a"),  # noqa: FURB123,RUF100

I ignore RUF102:

bool("a"),  # noqa: FURB123,RUF100,RUF102

It continues to throw RUF102:

RUF102 [*] Invalid rule code in `# noqa`: FURB123
/snip
335 |                 bool("a"),  # noqa: FURB123,RUF100,RUF102

The global suppression under [tool.ruff.lint] works though.

Version

ruff 0.15.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationsuppressionRelated to supression of violations e.g. noqa

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions