3 ms·
There is a Python library/tool called Bowler (https://pybowler.io/docs/basics-intro https://pybowler.io/docs/basics-intro) that allows selecting and transformin
by caeruleus 2y ago
There is a Python library/tool called Bowler (https://pybowler.io/docs/basics-intro https://pybowler.io/docs/basics-intro) that allows selecting and transforming elements on a concrete syntax tree. From my limited experience with it, I guess it would have been a nice fit for this refactoring.
- carlmr 2y agoI was going to suggest libCST, it works really well and is much less of a hassle to set up than this. https://github.com/Instagram/LibCST https://github.com/Instagram/LibCST
- caeruleus 2y agoGreat suggestion! Bowler seems to be abandoned actually. Its README mentions wanting to rewrite on top of LibCST though (https://github.com/facebookincubator/Bowler?tab=readme-ov-file#current-development-status https://github.com/facebookincubator/Bowler?tab=readme-ov-fi...).