QtPyConvert icon indicating copy to clipboard operation
QtPyConvert copied to clipboard

Investigate how black is doing their AST transformations

Open Ahuge opened this issue 6 years ago • 2 comments

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 avatar May 08 '18 18:05 Ahuge

Demo gist

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

You have to modify lib2to3

Ahuge avatar May 17 '18 02:05 Ahuge

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

It's mostly based on pgen2

Ahuge avatar May 17 '18 02:05 Ahuge