Sourcery for VS Code
Sourcery is your personal coding assistant that helps you write better, cleaner, Python code. It suggests refactorings on the fly to instantly improve your code.
Sourcery runs in the background whenever you're working on Python files. Keep an eye out for sections of your code underlined in blue - that means Sourcery has a suggestion!
Hover over a Sourcery suggestion to see a description of what Sourcery wants you to change along with the diff of the proposed changes. Then either use the quickfix menu (
Sourcery also provides quality metrics for every function you write (plus warnings for really bad code).
Installation / Getting Started
Looking for an even bigger quality boost for your code?
Automatic method extraction
Sourcery can find duplicate code or coherent blocks that should be extracted into a method. It will then do the extraction for you - all you need to do is name the method!
Multi file analysis & Duplicate analysis (beta):
Right click on any file or folder in the Explorer and hover over the Sourcery menu to see some of our more advanced features.
Choose "Scan with Sourcery" to have Sourcery analyse all of the files in that folder, not just your current folder.
Or choose "Detect Clones" to have Sourcery scan for duplicate sections of code across those files.
Privacy / Security
All of the analysis we do on your code is done fully locally. We never see any of your code or pass it back to our servers in any way. The only thing we collect is some basic analytics about the types of suggestions we make, and information about exceptions in Sourcery.
This repository includes source code as well as packaged binaries. The MIT license only applies to the source code, not the binaries.