sourcery icon indicating copy to clipboard operation
sourcery copied to clipboard

Auto fixall when saving Python scripts

Open andyluooo opened this issue 2 years ago • 0 comments

Checklist

  • [x] This is a new feature, not a refactoring suggestion
  • [x] I have checked for this feature in the Sourcery documentation
  • [x] I have checked there are no open requests referencing the same feature

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.

andyluooo avatar Apr 13 '23 11:04 andyluooo