diff --git a/.agents/rules/python.md b/.agents/rules/python.md index 200295e650..d683152814 100644 --- a/.agents/rules/python.md +++ b/.agents/rules/python.md @@ -13,3 +13,8 @@ * **External Objects**: When defining a `TypedDict` for an external object, link to its definition in the docstring. +## Delegating Functions +* Module-level functions delegating to class methods should have a docstring + referring to the class method (e.g. `"""Refer to \`Class.method\`."""`). + + diff --git a/.agents/rules/workspace.md b/.agents/rules/workspace.md index b819925f83..bc64d4779c 100644 --- a/.agents/rules/workspace.md +++ b/.agents/rules/workspace.md @@ -16,3 +16,5 @@ basis: ```bash .agents/scripts/setup_triangle_branch.sh ``` +* Never use `git push -u` or `--set-upstream` (it breaks upstream tracking). +