

Pyflakes: similar to pylint, except never complains about style.Pylint: throws warnings or errors for a combination of programming and style issues.Add-trailing-comma, a precommit hook that does various style enforcing (not just trailing commas).autopep8: automatically fixes most violations identified by pycodestyle.Pycodestyle: identifies pep8 style violations.There’s significant overlap within these tools, but roughly they break down into a few areas of focus: Originally this was a wiki page, then various levels of automated linting including different combinations and configurations of tools like autopep8, flake8, and pylint. Historically, we have always had a recommended Python style. Document Purposeĭecide if our various current Python style linting solutions (autopep8, pylint, flake8) should be replaced or simplified with an opinionated auto-formatter library called Black. So here's at least one more, in case it is useful to others.

It's early to declare whether that effort worked or not (though early feedback was positive), but while writing this up I felt there were too few public position papers advocating for Black usage. The document’s style is heavily modeled after Amazon’s 6 pagers ( detail here). This was written in early 2019 as an internal proposal for why Yelp should adopt Python's Black library for style linting.
