code-review-python
Installation
SKILL.md
Python Code Review Patterns
Stack-specific rules loaded by dh:code-reviewer when pyproject.toml or *.py files are detected.
Type Annotations
- All public function boundaries must have type annotations — parameters and return type
Anyis only acceptable with an inline comment explaining why a specific type cannot be usedTypedDictis required for dicts that cross module boundaries; plaindict[str, ...]is only acceptable within a single functionOptional[X]is legacy — useX | None(Python 3.10+ union syntax)Union[X, Y]is legacy — useX | Y- Return type
Nonemust be explicit on functions that have no return value but have side effects - Protocol classes are preferred over ABC for structural typing