LibCST icon indicating copy to clipboard operation
LibCST copied to clipboard

A concrete syntax tree parser and serializer library for Python that preserves many aspects of Python's abstract syntax tree

Results 171 LibCST issues
Sort by recently updated
recently updated
newest added

`with self.assertRaises(Exception):` is used in a couple places for testing an exception is raised. It can catch any Exception which can result in catching unexpected error. Change to use a...

good first issue

Thanks for providing the mybinder.org links to allow convenient running and modification of the examples in the tutorial! This is a really nice feature of the docs :+1:. When looking...

documentation
enhancement

The example of getting code positions using ``PositionProvider`` no longer works, as the API has changed from ``libcst.PositionProvider`` to ``libcst.metadata.PositionProvider``. Example at https://github.com/Instagram/LibCST/blob/master/docs/source/metadata.rst#metadata-apis. Fixing this is obviously trivial, but was...

documentation
help wanted
good first issue

I have a few errors building on openSUSE Tumbleweed (py38 currently) Packaging in progress at https://build.opensuse.org/package/show/home:jayvdb:py-new/python-libcst There are tests in the sdist, but that failed due to missing test data....

When doing replacements in a node, it's easy to end up with a tree, which won't get correctly converted to source code. The issue is that `libcst` is not adding...

I'm working on packaging LibCST for Guix (https://guix.gnu.org), but several tests are failing (see full log at the bottom). 3 of them are failing with the same error message: `"No...

Bumps [pyre-check](https://github.com/facebook/pyre-check) from 0.9.9 to 0.9.16. Release notes Sourced from pyre-check's releases. Pyre v0.9.11 Better source location if there are type errors within type comments. Basic support for PEP 681...

CLA Signed
dependencies
python

Hello, I've written a codemod which rewrites parameters in given function call. Details are not important. Also, I work in a project where we use Perforce as a source control....

I've been thinking of tightening up the supported Python versions in LibCST. ## Problem Currently, LibCST allows for handling any Python version since 3.0. This is problematic on many fronts:...

question

Currently `ExpressionContextProvider` treats import statement as having `LOAD` context. For a tiny example as `import a`: ```python import libcst as cst from libcst.metadata import ExpressionContextProvider from libcst.helpers import ensure_type module...