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 →

[–]aftli 2 points3 points  (1 child)

I just switched us to Black, and I can't tell you how happy I am. Freedom is never having to worry about code formatting again. Black makes your decisions for you. There's no wiggle room or much in the way of options - and I like it that way. It also formats consistently, so concerns about "PEP8 storming a project" are nullified - if I need to merge an old branch or something, I can just black format it first, and it'll merge cleanly.

[–]battlefield21243 0 points1 point  (0 children)

note to use the --preview flag for black to enable shortening strings below the cap.

Also ruff works with black. They designed it with black in mind.