Apply a strict set of modern Python 3.13+ coding standards to maintain a high-quality, predictable, and robust codebase. This skill guides you in writing, reviewing, and refactoring Python by enforcing specific patterns like LBYL (Look Before You Leap) exception handling, modern type syntax (e.g., `list[str]`), safe `pathlib` operations, and absolute imports. It also incorporates production-tested code smell patterns from Dagster Labs to improve API design, parameter complexity, and overall code organization, making it essential for projects that value clarity and maintainability.
Key Features
01Provides guidance on using `abc.ABC` for interfaces and absolute-only imports.
02Enforces LBYL (Look Before You Leap) exception handling over EAFP.
0323 GitHub stars
04Includes production-tested code smell patterns for API design and code organization.
05Defines explicit error boundaries and fail-fast philosophies for CLI applications.
06Mandates modern Python 3.13+ type syntax (e.g., `list[str]`, `str | None`).
Use Cases
01Refactoring a Python codebase to improve clarity, predictability, and maintainability.
02Writing new Python features that adhere to strict, modern coding standards.
03Onboarding new developers to a team's specific Python best practices.