Last Updated: May 22, 2026
PEP 8 tells you what well-formatted Python should look like. A code formatter is the program that gets your file there without you thinking about it. This lesson covers the four formatters Python developers commonly use (black, ruff format, autopep8, yapf), how they differ, how to set one up in a project, and the small set of judgment calls every team has to make.