refine leverages the capabilities of libCST (Library for Concrete Syntax Trees), a Python
library designed for parsing, manipulating, and generating Python code in a syntax-preserving way. It builds upon libCST's
codemod module, which provides utilities for transforming code
programmatically.
refine enables running multiple codemod's in a single CLI execution, streamlining workflows compared to libCST's one-codemod-per-execution approach.
Codemods are applied in a predefined order based on priorities defined by the modules. This ensures automatic logical sequencing of transformations.
Chained execution minimizes redundant parsing and tree-building processes, improving efficiency for large-scale projects.
By reducing the need for multiple executions, refine enhances developer workflows, especially in CI/CD pipelines or batch processing.
