Modernizes Python codebases by applying Python 3.11+ best practices, advanced type hinting, and contemporary framework patterns.
This skill transforms legacy Python scripts into robust, modern applications by leveraging the latest features of Python 3.11 and beyond. It automates the migration from outdated typing imports to built-in generics, replaces complex conditional logic with structural pattern matching, and implements advanced patterns like the Self type and StrEnum. Beyond syntax, it enforces professional development standards by integrating pytest-mock for testing, Typer for CLI development, and Rich for enhanced terminal output, ensuring your code remains clean, type-safe, and highly maintainable.
主な機能
01Automatic modernization to Python 3.11+ syntax and PEP standards
02Standardized CLI development using Typer Annotated syntax
0318 GitHub stars
04Migration of legacy unit tests to modern pytest-mock patterns
05Refactoring of conditional logic into structural pattern matching (match-case)
06Implementation of modern type hinting using PEP 585 and 604
ユースケース
01Refactoring legacy Python 3.7-3.9 codebases to current 3.11+ standards
02Ensuring new feature development follows the latest type-safety best practices
03Migrating unittest-based suites to modern pytest and pytest-mock architectures