Claude Rules for Python

CLAUDE.md rules for Python development. Covers type hints, docstring conventions, framework-specific patterns for FastAPI and Django, and Python tooling (ruff, mypy, pytest).

2 rules matching Python

Why add Python rules to your CLAUDE.md?

Python projects have their own set of conventions around type hints, docstrings, virtual environments, and which testing framework to use. CLAUDE.md rules for Python typically specify whether the project uses type annotations, which formatter (black, ruff), how to write docstrings, and framework-specific patterns — so Claude doesn't mix up Django ORM syntax with SQLAlchemy or forget to add type hints when the project requires them.