sourcery-ai / sourcery

Instant AI code reviews
https://sourcery.ai
MIT License
1.5k stars 65 forks source link

Auto fixall when saving Python scripts #338

Open Andy-Dihong-Luo opened 1 year ago

Andy-Dihong-Luo commented 1 year ago

Checklist

Description

Hi there, I am currently using the Sourcery VSCode plugin and it helps a lot. However, I still want it to automatically accept every refactorings whenever I save files. Similar functions have been enabled by some popular tools like Black, isort, etc., which deal with the problems rapidly and silently on save. This new feature is expected to work in the same way as I use sourcery review --fix in command line, and the only difference is it happens when I press Ctrl + S on my keyboard instead. Hopefully there will be such an option in future releases.

Sorry if there is already a solution in the docs but accidentally ignored. Looking forward to your reply.