79073329

Date: 2024-10-10 08:09:19
Score: 1
Natty:
Report link

Seems like Black updated what they consider to be "preview". I got it to run using the options --preview --enable-unstable-feature string_processing:

black -l 80 -t py38 --preview --enable-unstable-feature string_processing -c 'long = "This is a long line that is longer than 88 characters. I expect Black to shorten this line length."'

long = (
    "This is a long line that is longer than 88 characters. I expect Black to"
    " shorten this line length."
)

NOTE: The last comment/answer to https://github.com/psf/black/issues/1802 (referenced in @eka's answer) doesn't seem work with Black version 24.8.0.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @eka's
  • Low reputation (1):
Posted by: billibub