Hi Ned.
> Try the latest black. A multi-line lists with comments on each line is
> not converted to a one-line list. The lined-up indentation of the
> comments is lost :(, but it's still multi-line.
Hmmm, I tried commit cea13f4 (current master at the time of this writing).
It turned
l = [
1, # one
2, # two
3, # three
]
into
l = [1, 2, 3] # one # two # three
Maybe in your case the line limit kicked in and prevented the reformatting?
> This is one of my concerns: Black is still beta, and is still adjusting
> the way it formats in small ways. So a boil-the-ocean formatting of the
> code may not be the last time the code will change to suit black.
I agree.
--
René
--
You received this message because you are subscribed to the Google Groups
"Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-developers/2137d5e8-80fd-eecc-9128-8e0f31d606d7%40fleschenberg.net.
For more options, visit https://groups.google.com/d/optout.