3 ms·
Read pep8, as others suggest, but don’t use a linter. > However, know when to be inconsistent – sometimes style guide recommendations just aren’t applicable. W
by wodenokoto 4y ago
Read pep8, as others suggest, but don’t use a linter.
> However, know when to be inconsistent – sometimes style guide recommendations just aren’t applicable. When in doubt, use your best judgment. Look at other examples and decide what looks best.
-pep8
- wonkyspecs 4y agoTo follow up on this, if you've got a spare hour, one of the python core developers has a great demo of how pep8 can sometimes be blinding to larger issues https://www.youtube.com/watch?v=wf-BqAjZb8M https://www.youtube.com/watch?v=wf-BqAjZb8M That said, most of what pep8 says is great to follow in the vast majority of cases.