What problem does it solve?
This skill ensures your Python 3.10-3.12 code adheres to best practices, preventing common errors and maintaining high standards without tedious manual review. It automates the enforcement of robust coding patterns, saving you time and reducing complexity in your codebase.
Core Features & Use Cases:
- LBYL Exception Handling: Guides on proactive error checking (Look Before You Leap) to avoid runtime surprises and improve code predictability.
- Pathlib Operations: Standardizes file system interactions for robustness and clarity, moving away from
os.path.
- ABC-based Interfaces: Promotes clear, testable code contracts using Abstract Base Classes for better architecture.
- Use Case: When refactoring a legacy Python 3.10 codebase, use this skill to automatically identify and suggest fixes for non-compliant exception handling or import patterns, ensuring your code meets modern, dignified Python standards.
Quick Start:
Review the attached Python 3.10 code file 'my_script.py' and suggest improvements to align with dignified Python standards, focusing on LBYL exception handling and absolute imports.