Discover more from Daily Dose of Data Science
Automated Code Refactoring With Sourcery
Refactoring codebase is an important yet time-consuming task. Moreover, at times, one might unknowingly introduce errors during refactoring.
This takes additional time for testing and gets tedious with more refactoring, especially when the codebase is big.
Rather than following this approach, use Sourcery. It's an automated refactoring tool that makes your code elegant, concise, and Pythonic in no time.
With Sourcery, you can refactor code in many ways. For instance, you can refactor scripts through the command line, as an IDE plugin in VS Code and PyCharm, etc.
Read my full blog on Sourcery here: Medium.
Thanks for reading Daily Dose of Data Science! Subscribe for free to receive new posts and support my work.
Find the code for my tips here: GitHub.