Sourcery instantly reviews your Python code and refactors it, making it cleaner and more readable. It’s like having a pair programmer always working next to you. Install into PyCharm, VS Code, or your GitHub repos in 1 minute. It's free!
@pavt thanks! Planning on supporting both in the future. For Sublime we have a bit of a workaround at the moment. It's not as integrated as our VS Code & PyCharm plugins but still gives you all the refactorings - https://github.com/sourcery-ai/s...
Report
I just started studying python. Looks super useful. Congrats on the launch!
I think you guys said you use opensource git repos as "training data" … is this correct? … is there an AI component to your product? … Would it be possible to train your model with a local ascii text corpus?
Report
Sadly Sourcery seems to heavily prefer making the code more compact and less readable, converting normal if statements to ternary, loops to comprehensions etc. This does not make the cleaner or more readable in any way. Writing something out across multiple lines is in most cases more readable than making it a single line. It has multiple times caused my linter to complain about line length and i had to undo multiple refactorings that were making the code much less readable.
I recommend Sourcery reevaluates the focus on shortening the code to actually refactoring bad patterns like range(len()).
Replies
Sourcery AI
Sales Likelihood Calculator
Sourcery AI