-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Commented strings #2441
Comments
Hi @jonnyarnold - looks like this is out of scope, see #1904 |
Thanks for the reply @MarcoGorelli. I'm not too worried about the vertical comment alignment. However, I'd say that inline comments changing lines is a bug, rather than a style issue? |
I found this ticket after experiencing black moving around (thereby breaking) some Is the official recommendation to just surround these lines in |
@wbadart we have code that tries to keep |
Ah, just ran a little experiment based on your comment. Looks like the code for pinning type ignores works for |
Personally I think this should be supported. I think folding this into GH-2097 works well enough IMO, but I'll let Jelle weigh in. |
I'd vote for normalizing |
I think I agree that the format of comments like this do fall under black's purview. Would it be possible, in that case, to have black recognize |
Why assume that the current black configuration is optimal? It may be necessary to vote to evaluate the controversial areas for further optimization, rather than complacency. Maybe most people think alignment is good! So We should not assume and need to evolve! Black is very good, but it maybe not be perfect. It needs to evolve. Thank you for providing so good tool! |
@li1234yun We don't assume it, hence a hefty number of issues like this labelled "design". But Black isn't built as a democracy of its users either, but rather according to the vision of its original author and current maintainers. Feel free to chime in though! And thank you for the kind words 👍 |
The OP is another case of #379 (there are other issues about type ignore). |
Commented strings are currently realigned and repositioned.
Original:
Formatted with Black 21.7b0:
To enumerate the issues:
Let me know if you need any further information! 👍
The text was updated successfully, but these errors were encountered: