LibCST/libcst/codemod/__init__.py

51 lines
1.2 KiB
Python

from libcst.codemod._cli import (
ParallelTransformResult,
diff_code,
exec_transform_with_prettyprint,
gather_files,
parallel_exec_transform_with_prettyprint,
)
from libcst.codemod._codemod import Codemod
from libcst.codemod._command import (
CodemodCommand,
MagicArgsCodemodCommand,
VisitorBasedCodemodCommand,
)
from libcst.codemod._context import CodemodContext
from libcst.codemod._runner import (
SkipFile,
SkipReason,
TransformExit,
TransformFailure,
TransformResult,
TransformSkip,
TransformSuccess,
transform_module,
)
from libcst.codemod._testing import CodemodTest
from libcst.codemod._visitor import ContextAwareTransformer, ContextAwareVisitor
__all__ = [
"Codemod",
"CodemodContext",
"CodemodCommand",
"VisitorBasedCodemodCommand",
"MagicArgsCodemodCommand",
"ContextAwareTransformer",
"ContextAwareVisitor",
"ParallelTransformResult",
"TransformSuccess",
"TransformFailure",
"TransformExit",
"SkipReason",
"TransformSkip",
"SkipFile",
"TransformResult",
"CodemodTest",
"transform_module",
"gather_files",
"exec_transform_with_prettyprint",
"parallel_exec_transform_with_prettyprint",
"diff_code",
]