LibCSTTransformer (autotransform.transformer.libcst)

The implementation for the LibCSTTransformer. See https://github.com/Instagram/LibCST

class autotransform.transformer.libcst.LibCSTTransformer(*, command_module: str, command_name: str, command_args: ~typing.Dict[str, ~typing.Any] = <factory>)

Bases: SingleTransformer

A Transformer that makes changes using LibCST.

command_module

The fully qualified module where the CodemodCommand is located.

Type:

str

command_name

The name of the class for the CodemodCommand.

Type:

str

command_args

Arguments for the CodemodCommand. Defaults to {}.

Type:

optional, Dict[str, Any]

name

The name of the component.

Type:

ClassVar[TransformerName]

command_args: Dict[str, Any]
command_module: str
command_name: str
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

name: ClassVar[TransformerName] = 'libcst'