18 lines
533 B
Org Mode
18 lines
533 B
Org Mode
*** 📎 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
|