0.4.3 - 2022-05-11
Fixed
* Restore the 0.4.1 behavior for libcst.helpers.get_absolute_module
0.4.2 - 2022-05-04
Fixed
* native: Avoid crashing by making IntoPy conversion fallible
* native: make sure ParserError's line is zero-indexed
* Fix space validation for AsName and Await
* Qualified Name Provider: Fix returned qname for symbols that are prefixes of each other
* Rename Codemod: Correct last renamed import from
* Many changes to the Apply Type Comments codemod:
* Allow for skipping quotes when applying type comments
* Port pyre fixes
* Preserve as-imports when merging type annotations.
* Qualify imported symbols when the dequalified form would cause a conflict
* Add an argument to always qualify imported type annotations.
Added
* Create an AddTrailingCommas codemod
* Define gather global names visitor
Updated
* Support module and package names in the codemod context
* Drop support for running libcst using a python 3.6 interpreter
* Update relative import logic to match cpython
* Scope Provider: Consider access information when computing qualified names for nodes
Packaged by adam and myself in wip.
LibCST parses Python 3.0 -> 3.11 source code as a CST tree that
keeps all formatting details (comments, whitespaces, parentheses,
etc). It's useful for building automated refactoring (codemod)
applications and linters.
LibCST creates a compromise between an Abstract Syntax Tree (AST)
and a traditional Concrete Syntax Tree (CST). By carefully reorganizing
and naming node types and fields, we've created a lossless CST that
looks and feels like an AST.