Skip to content
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

long lines do not get broken off at line-length #4230

Closed
Morriz opened this issue Feb 13, 2024 · 1 comment
Closed

long lines do not get broken off at line-length #4230

Morriz opened this issue Feb 13, 2024 · 1 comment
Labels
T: bug Something isn't working

Comments

@Morriz
Copy link

Morriz commented Feb 13, 2024

Describe the bug

Lines do not get cut up after line-length.

According to @JelleZijlstra in issue #1802 the following should work but it does not:

To Reproduce

For example, take this code:

black -v --preview -c 'long = "This is a long line that is longer than 88 characters. I expect Black to shorten this line length."'
Using configuration from project root.
line_length: 88
preview: True
target_version: ['py311']
long = "This is a long line that is longer than 88 characters. I expect Black to shorten this line length."
reformatted <string>
All done! ✨ 🍰 ✨

Expected behavior

Environment

  • Black's version: 24.2.0
  • OS and Python version: OSX 14.2.1 Sonoma
@Morriz Morriz added the T: bug Something isn't working label Feb 13, 2024
@JelleZijlstra
Copy link
Collaborator

This feature has been relegated to --unstable mode because it is too, well, unstable. I recently proposed to give up on it (#4208). Any related discussion can happen there.

@JelleZijlstra JelleZijlstra closed this as not planned Won't fix, can't repro, duplicate, stale Feb 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants