Commit graph

3 commits

Author SHA1 Message Date
adam
da56fb612b py-libcst: updated to 0.4.3
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
2022-05-16 19:20:04 +00:00
wiz
69c1b39e79 py-libcst: download peg-git during fetch stage, and provide it during build
avoids network access during build
2022-03-05 11:23:11 +00:00
wiz
cd26677692 lang/py-libcst: import py-libcst-0.4.1
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.
2022-02-23 11:32:52 +00:00