Re:Black, the uncompromising Python code formatter, is stable
by scrollaway on Saturday January 29, 2022 @08:50PM
(#30132954)
88 character lines are always pep8 non-compliant :)
Re:Black, the uncompromising Python code formatter, is stable
by batisteo on Sunday January 30, 2022 @02:50AM
(#30134949)
Some teams strongly prefer a longer line length. For code maintained exclusively or primarily by a team that can reach agreement on this issue, it is okay to increase the nominal line length from 80 to 100 characters (effectively increasing the maximum length to 99 characters), provided that comments and docstrings are still wrapped at 72 characters.
Re:Black, the uncompromising Python code formatter, is stable
by scrollaway on Sunday January 30, 2022 @09:48AM
(#30137630)
I know. That’s my point. Religiously following pep8 is absurd.
Tabs are not PEP 8 compliant except for consistency with existing code:
https://www.python.org/dev/peps/pep-0008/#tabs-or-spaces
But if you're going to use a tool like Black in the first place, you're already committed to not preserving different formatting styles in existing code. You want to enforce one consistent style everywhere in the code base. And PEP 8 says that means no tabs.
> a personal grudge against tabs
I don't see why there would have to be any personal grudge given the above.