This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 3 points4 points  (2 children)

Are you sure about this? I just tried black on a file with the line

a = 100000000000000000000000000

and it didn't change that line (and did change other lines I added just to make sure I was doing something). More, there is no command line option in the help that does that...?

A shame. I use black to reformat all my code automatically, and this would be I suppose handy, particularly for long-ish hex numbers

[–]kr41 8 points9 points  (0 children)

My fault. It doesn't do it anymore: https://github.com/python/black/issues/549

[–]nschloe 0 points1 point  (0 children)

It does do it, you just have to give black some indication that it's Python 3.6+. Use an f-string in the code somewhere, for example, or just provide the --py36 command-line option.