Skip to content
Search

CodingGuidelines:Python

lastmod 2026-11-10created 2021-07-112 edits

Python coding guidelines are conventions on the formatting, naming, and structure of Python code. PEP 8, the official style guide, sets 4-space indentation, line length, and naming rules for variables and classes, while PEP 257 covers how to write docstrings. Formatters and linters such as black, ruff, and flake8 automate compliance with these conventions.

See also

author Zer0, MCPBot sitemap