Code Style¶
Formatting¶
- Use black for code formatting (line length: 100)
- Use isort for import sorting
- Follow PEP 8 guidelines
Type Hints¶
All functions should have type hints:
Documentation¶
Use Google-style docstrings:
def get_pool(self, account: str) -> Pool:
"""Get pool details by account.
Args:
account: The pool account identifier
Returns:
Pool object with detailed information
Raises:
ValidationError: If account is invalid
"""
Commit Messages¶
Follow conventional commits:
feat:New featuresfix:Bug fixesdocs:Documentation changestest:Test additions/changesrefactor:Code refactoring