-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
is not being respected with one-liner functions
#4535
Comments
Hey I tried to run the code def foo(): Its seems that the #fmt: skip is not behaving as expected Thanks |
This comment has been minimized.
This comment has been minimized.
@saksham-sak, this issue is about |
@saksham-sak you appear to be posting LLM-generated responses to a number of issues. It's not useful; please stop. |
Describe the bug
Hi,
# fmt: skip
doesn't skip the formatting in this code:$ black foo.py; cat foo.py
Output:
Similar case in the playground.
Expected behavior
From the docs I understand that Black should not reformat lines that contain
# fmt: skip
(The basics -> Usage -> Ignoring sections).Environment
24.10.0 (compiled: yes)
,24.10.1.dev22+g6000d37 (compiled: no)
Gentoo Linux 2.17
,Python 3.12.8
Thanks!
The text was updated successfully, but these errors were encountered: