LibCST/libcst/codemod
André C. Silva f81cc8d00e
AddImportsVisitor: add imports before the first non-import statement (#1024)
* AddImportsVisitor will now only add at the top of module

- Also added new tests to cover these cases

* Fixed an issue with from imports

* Added a couple tests for AddImportsVisitor

* Refactoring of GatherImportsVisitor

* Refactors, typos and typing changes
2023-10-01 14:38:33 +01:00
..
commands Don't insert duplicate imports (#981) 2023-07-25 16:13:48 +01:00
tests Allow running codemods without configuring in YAML (#879) 2023-03-27 10:59:48 +01:00
visitors AddImportsVisitor: add imports before the first non-import statement (#1024) 2023-10-01 14:38:33 +01:00
__init__.py Fix license headers (#560) 2021-12-28 11:55:18 +00:00
_cli.py Don't gather dirs ending .py (#994) 2023-08-26 10:54:32 +01: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