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

19 lines
533 B
Org Mode
Raw Normal View History

2025-08-13 17:27:26 +02:00
*** 📎 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:
#+begin_src python
def example():
"""
Brief summary.
Args:
param1 (type): Description.
Returns:
type: Description.
"""
#+end_src