Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
georgettica opened this issue Nov 28, 2023 · 2 comments
Closed

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

georgettica opened this issue Nov 28, 2023 · 2 comments
Labels
formatter Related to the formatter suppression Related to supression of violations e.g. noqa

Comments

@georgettica
Copy link

# 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
@zanieb zanieb added suppression Related to supression of violations e.g. noqa formatter Related to the formatter labels Nov 28, 2023
@MichaReiser
Copy link
Member

Related to #8892

@MichaReiser MichaReiser added this to the Formatter: Stable milestone Nov 29, 2023
@georgettica
Copy link
Author

as a duplicate, I will close it in favor of #8892

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
formatter Related to the formatter suppression Related to supression of violations e.g. noqa
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants