What problem does it solve?
This skill ensures your Python 3.13+ code adheres to advanced best practices and avoids production-tested code smells from Dagster Labs, reducing bugs and improving maintainability. It automates the enforcement of high-quality coding standards, freeing you from manual code reviews.
Core Features & Use Cases:
- LBYL Exception Handling: Enforces proactive error checking (Look Before You Leap) over EAFP, leading to more predictable code.
- Modern Type Syntax: Guides on Python 3.13+ type annotations (
list[str], str | None), ensuring your code is future-proof and type-safe.
- Dagster Code Smells: Identifies and helps refactor anti-patterns related to API design, parameter complexity, and class organization, based on real-world production experience.
- Use Case: When reviewing a pull request, use this skill to automatically check for adherence to Python 3.13+ syntax, LBYL patterns, and common Dagster-identified code smells, providing precise, automated feedback to the developer.
Quick Start:
Review the attached Python 3.13 code file 'my_new_feature.py' for adherence to dignified Python standards, specifically checking for LBYL patterns, modern type syntax, and any Dagster-identified code smells.