emacs-config/composable-prompts/20-python-style-conventions.org

533 B

📎 Style & Conventions: Python

  • Use Python as the primary language.
  • Follow PEP8, use type hints, and format with black.
  • Use pydantic for data validation.
  • Use FastAPI for APIs and SQLAlchemy or SQLModel for ORM if applicable.
  • Write docstrings for every function using the Google style:
def example():
    """
    Brief summary.

    Args:
        param1 (type): Description.

    Returns:
        type: Description.
    """