LibCST/libcst/codemod
Zsolt Dollenstein db696e6348
fix: don't reset context.scratch between files (#1151)
#453 fixed scratch leaking between files by setting it to empty, but that drops all the scratch space that was set up before the codemod runs (e.g. in the transformer's constructor)

This PR improves the fix by preserving the initial scratch.
2024-05-21 15:52:49 -04:00
..
commands remove typing dependencies (#1126) 2024-04-03 19:50:14 +01:00
tests Allow running codemods without configuring in YAML (#879) 2023-03-27 10:59:48 +01:00
visitors Fix Literal parse error in RemoveImportsVisitor (#1130) 2024-05-03 22:36:20 +01:00
__init__.py Fix license headers (#560) 2021-12-28 11:55:18 +00:00
_cli.py fix: don't reset context.scratch between files (#1151) 2024-05-21 15:52:49 -04:00
_codemod.py Fix license headers (#560) 2021-12-28 11:55:18 +00:00
_command.py Fix all type errors (#579) 2022-01-05 18:13:01 +00:00
_context.py Support module and package names in the codemod context (#662) 2022-03-23 14:17:25 -04:00
_dummy_pool.py Fix license headers (#560) 2021-12-28 11:55:18 +00:00
_runner.py Fix license headers (#560) 2021-12-28 11:55:18 +00:00
_testing.py Fix all type errors (#579) 2022-01-05 18:13:01 +00:00
_visitor.py Fix license headers (#560) 2021-12-28 11:55:18 +00:00