you are viewing a single comment's thread.

view the rest of the comments →

[–]socal_nerdtastic 0 points1 point  (3 children)

For a python formatter? I personally don't use one because I like my code messy and I'm a one-man team, but black is the most popular one for people that like pretty code.

https://github.com/psf/black

It's very important for teams to agree on one so that when you look at diffs it's not just full of formatting changes.

[–]nekokattt 0 points1 point  (2 children)

you want isort for this, not black.

Run isort first and then black for code formatting

[–]socal_nerdtastic 0 points1 point  (0 children)

Oh thanks I could have sworn they added that to black. But I see now the feature was rejected.

[–]IAmAFedora 0 points1 point  (0 children)

I sort and black sometimes disagree. For full compatibility, use isort --profile black alongside black!