Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate how black is doing their AST transformations #11

Open
Ahuge opened this issue May 8, 2018 · 2 comments
Open

Investigate how black is doing their AST transformations #11

Ahuge opened this issue May 8, 2018 · 2 comments
Assignees
Labels
enhancement New feature or request Investigate Investigation work needs to be done.
Milestone

Comments

@Ahuge
Copy link
Contributor

Ahuge commented May 8, 2018

black has a really really high quality replacement system.

Ideally we should investigate their tokenizing system and see if we can remove our redbaron dependency.

@Ahuge Ahuge added the enhancement New feature or request label May 8, 2018
@Ahuge Ahuge self-assigned this May 8, 2018
@Ahuge Ahuge added this to the black backend milestone May 17, 2018
@Ahuge Ahuge added the Investigate Investigation work needs to be done. label May 17, 2018
@Ahuge
Copy link
Contributor Author

Ahuge commented May 17, 2018

Demo gist

https://gist.github.com/Ahuge/f9f1c1d275889bbff82dac1760135c13

You have to modify lib2to3

@Ahuge
Copy link
Contributor Author

Ahuge commented May 17, 2018

Might have to reimplement parts of lib2to3 to add py2.7 support.

It's mostly based on pgen2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Investigate Investigation work needs to be done.
Projects
None yet
Development

No branches or pull requests

1 participant