Skip to content

# noqa: E702 # fmt: skip still formats the line of code #11430

@ngoctnq

Description

@ngoctnq

Input code:

print(); print() # noqa # fmt: skip

After formatting:

print()
print()  # noqa # fmt: skip

# fmt: on/off works fine though, but I want to have just one line of short boilerplate code.

I'm using the Ruff VS Code extension, which is said to ship with ruff==0.4.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    formatterRelated to the formattersuppressionRelated 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