-
Notifications
You must be signed in to change notification settings - Fork 3
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
Run black on the whole repository #42
Comments
Sounds good to me. |
I'm very much in favour of this but suggest we don't go with the most recent stable release of Black because it removes all blank lines between comments – which decreases readability in general, and might really mess with our files since there is still lots of (temporarily) commented code in there. |
Just to clarify: you're referring to version 23.01 as the most recent stable release, but using 22.12 would be ok? |
Yup, sorry, was going to link issues/comments related to this, but it took me a bit longer than expected to find them again: psf/black#3555 and searxng/searxng#2159 (comment) |
I merged the fat commit yesterday, so feel free and black to whole repo please. |
What's the character line width setting? |
Black defaults to 88 chars and we don't have an override: https://black.readthedocs.io/en/stable/the_black_code_style/current_style.html#line-length |
It can be overriden: https://black.readthedocs.io/en/stable/the_black_code_style/current_style.html#line-length But I don't advocate for it anyway, eventhough I personally prefer 100 as I tend to be verbose with naming. Since the apis project is moving into a much more collaborative dev setting by now, it's reasonable to stick with defaults. |
Just FYI: the issue has been solved since psf/black#4060 has been merged .. was a long discussion .. but finally it becomes good :-) |
Thanks a lot for the notification! Much appreciated! |
The black documentation writes (emphasis by me):
and:
Therefore I propose to just run black on the whole codebase instead of cluttering the git history with small formatting commits.
The text was updated successfully, but these errors were encountered: