Skip to content

# fmt: skip should have comments after the skip keyword #8874

@georgettica

Description

@georgettica

# fmt: skip should have a comment section to allow developers to explain why they don't want to format

my motives are to allow partial grouping of array inputs.

data that was requested:

python file:

commands_to_run = [
    "./command.sh",
    "-n", "5",
    "-v",
]  # fmt: skip - reason for skipping 

command:

ruff format --isolated <file.py>

output:

list_of_items = [
    "./command.sh",
    "-n",
    "5",
    "-v",
]  # fmt: skip - reason for skipping 
$ ruff --version
ruff 0.1.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    formatterRelated to the formattersuppressionRelated to supression of violations e.g. noqa

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions