|
|
|
|
|
by bombolo
1274 days ago
|
|
> This is a bad practice. You should be using black as a pre-commit hook I would reject such commits in review. A human might add one or two items to a list and black might decide it's now too long, and make 1 line into 10 lines. Now I have to manually compare the list item by item to figure out what has changed. So I normally require formatting to be done in a separate commit, because I don't want to review the larger than necessary diffs that come out doing it within the same commit. |
|
A human might add one or two items to a list, decide it's now too long, and make 1 line into 10 lines.
Including the same hypothetical first contributor you mentioned earlier, who you think will find using requirements.txt as being too big a barrier to entry.
Onboarding occurs either way.
I get that you don't like using black - and that's fine! I don't use black on my project either.
But it seems like you're trying to find some other reason to reject black, and constructing hypotheticals that don't make any sense.
Just say you don't like black's choices, and leave it at that.