Set an option to run yapf on .py file save
sametmax opened this issue · 4 comments
sametmax commented
This way you can run yapf without thinking about it. This option should set to false by default though.
sametmax commented
Is it just a command, or is there a onSave hook added too ?
jason-kane commented
There is a pre-save hook controlled by the "on_save" setting; it should take a boolean value. The default config file will need a little love to properly cover all valid options.
sametmax commented
Thanks
catch22 commented
Check out Preferences -> Package Settings -> PyYapf -> Settings - Default
for a list of all options (and best configure them in Preferences -> Package Settings -> PyYapf -> Settings - User
). We should add some better documentation in the README 😄