.gemini/styleguide.md
You should conduct a strict code review. Each requirement is labeled with priority:
Third-party library refers to libraries not included in the dependencies variable in pyproject.toml.def get_xxx_cls() -> "MyClass":
from xxx import BaseClass
class MyClass(BaseClass): ...
return MyClass
After understanding the code intent, check if it can be optimized:
src/agentscope should be named with _ prefix, and exposure controlled through __init__.py_ prefixpyproject.tomldef func(a: str, b: int | None = None) -> str:
"""{description}
Args:
a (`str`):
The argument a
b (`int | None`, optional):
The argument b
Returns:
`str`:
The return str
"""
class MyClass:
"""xxx
`Example link <https://xxx>`_
.. note:: Example note
.. tip:: Example tip
.. important:: Example important info
.. code-block:: python
def hello_world():
print("Hello world!")
"""
\n formatting issues)feat/fix/docs/ci/refactor/test, etc.feat(scope): descriptionfeat(memory): add redis cache support