Ask HN: Python Script Best Practices?
I recently stumbled on this article about Shell Script Best Practices (https://sharats.me/posts/shell-script-best-practices/) here on HN and appreciated the format (concise, curated, well explained, based on experience).
I was wondering if someone knows of a similar ressource for python ?
6 comments
[ 3.3 ms ] story [ 23.6 ms ] threadhttps://learn.microsoft.com/en-us/visualstudio/python/lintin...
If you also want a linter for bash, check out shellcheck: https://github.com/koalaman/shellcheck
> 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
That said, most of what pep8 says is great to follow in the vast majority of cases.