Feature request: AST-level diff for Python code (and other languages) #72634
Unanswered
holvi-mikael
asked this question in
Pull Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Product Feedback
Body
Current PR review functionality already has an option to ignore whitespace when comparing file contents.
For reviewing Python code changes, an option to "review changes to AST only" would be very helpful.
AST (Abstract Syntax Tree) contains the "real" Python code, i.e. the parts that actually do something, leaving out things like comments and type hints. Python already includes all the tools needed to access and analyse the AST.
As a reference, there is a Python package called astdiff that can be used to achieve something similar on the local computer.
Beta Was this translation helpful? Give feedback.
All reactions