Shantanu
Shantanu
@yuhrichard Thanks for the feedback! Yes, the behaviour you're seeing is from `wrap_long_dict_value_in_parens`. I've filed https://github.com/psf/black/issues/4129 for your issue. I'm not sure when exactly the release would happen, but I'd...
I'm a little confused by the last paragraph. E704 is something that is typically completely obviated by an autoformatter (which is e.g. why ruff doesn't implement the check). So the...
I don't have a use case, so I don't feel strongly. One of the reports about the old behaviour mentioned being happy if Black didn't format symlinks. Also not handling...
Yup, what Jelle said. When writing the patch I thought this would be fairly uncommon. I'll leave this issue open since this is still in preview style and maybe this...
Note that example doesn't repro as-is; you need a shorter line length or longer args or longer comment (and IMO it looks a little less bad if so) I think...
Repro: https://black.vercel.app/?version=stable&state=_Td6WFoAAATm1rRGAgAhARYAAAB0L-Wj4AEdAK9dAD2IimZxl1N_WlbvK5V9KEd0suDTtKdX1Rt0IE8B8P1y4aKTf-wph05QP2cby5sGqpd485SSPwV2QwU-E1gngOQulSp_dRlH2TcvOEkbiAPC-PvU03Pm2iJJx5jI2uyv1CoFx-4QcEFRMVGrJWW1CckfvLjyCtEQhNlBy-KLGmfDSh5tOeTp1s2Bk1VUCQ3WGwpRTBBzOJE80tHnzWbkiqy4xdIBJQGcOhX30956s5IAADJvImDTGspIAAHLAZ4CAADjUQHbscRn-wIAAAAABFla
Neat proof of concept! I think using `git add --patch` or another tool is the way to go. Black should be something you can run and trust; picking and choosing...
Looking at the diff shades report https://github.com/psf/black/actions/runs/5431147643/jobs/9880366015?pr=3362 it looks this causes the "magic" trailing comma to not get respected inside collection literals if there's a comment
Closing since all known issues have been taken care of! :-)
Thanks both! For what it's worth, I'd be in favour of converting the Style and Usage sections to a single page, but trust y'all to do what makes sense for...