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

line-length is not working as intended #4300

Closed
gjambaisivanandham opened this issue Apr 5, 2024 · 1 comment
Closed

line-length is not working as intended #4300

gjambaisivanandham opened this issue Apr 5, 2024 · 1 comment
Labels
T: bug Something isn't working

Comments

@gjambaisivanandham
Copy link

I am using black version 24.3.0 and have set line-length = 88 in my config file, however running black . command doesn't modify the lines of code that are over 88 characters.

Ex:
Before running black
str = "this is the longest text in the history of mankind that I have seen in the world for all the good and bad things"

After running black the result is still the same. I don't see any error it says x file(s) left unchanged.

Here is my config file

max-line-length = 88
extend-ignore = E203, W503, W291
exclude = .git,__pycache__,./.venv

[tool.black]
line-length = 88```

python version: `3.11.6`
  
@gjambaisivanandham gjambaisivanandham added the T: bug Something isn't working label Apr 5, 2024
@cobaltt7
Copy link
Contributor

cobaltt7 commented Apr 6, 2024

Long strings are currently unaffected by the current Black stable style. You can use the --unstable flag to enable it and other unstable/preview features, as described in the documentation. However, this particular feature may not stay around for much longer - see #4208

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

3 participants