Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Agents.md - prefer doc strings over comments (#19245)
Lukasz Ostrowski89506dc4d743
diff --git a/AGENTS.md b/AGENTS.mdindex 65d44478e0..e1a958d4be 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -182,3 +182,26 @@ When adding or changing search vector indexing logic, create a data migration th- Task: `saleor/giftcard/migrations/tasks/saleor3_22.py`- Migration: `saleor/giftcard/migrations/0023_mark_gift_cards_search_vector_as_dirty.py`+++# Code style++## Prefer docstrings over comments++When describing behavior prefer to use docstring over a comment:++Not:++```python+def foo():+ # Comment+ # instead of+ # docstring+```++Do:++```python+def foo():+ """Doc string"""+```