SublimeAutoPEP8 icon indicating copy to clipboard operation
SublimeAutoPEP8 copied to clipboard

Please add "Disable auto pep8 on this file" command

Open gsemet opened this issue 9 years ago • 5 comments

So this great feature can be temporally disabled when editing some files we don't want to change

Thanks

gsemet avatar Feb 28 '15 11:02 gsemet

Could you please explain a case? Probably disabling formatting on save could be a solution.

wistful avatar Mar 01 '15 09:03 wistful

I just did it on a plugin for organizing the import statement: Python fix import (deliberately inspired on your plugin)

I have the pep8 formating always on save. But sometime I edit a file I don't want to touch (another project,...). For example: "disable auto pep8" for this file. Or "disable autopep8 for this session". I can submit a pl if you want.

gsemet avatar Mar 01 '15 10:03 gsemet

Seems like autopep8 '--exclude' option could be useful here.

wistful avatar Jan 09 '18 03:01 wistful

This feature would be very helpful. In the JsPrettier plugin you can set it up to only format if it finds a .prettierrc file in some parent folder. The option is called auto_format_on_save_requires_prettier_config. This makes it possible to enable it on a per-project basis, even when you have format on save option turned on.

walling avatar Oct 30 '20 17:10 walling

Thank you for the suggestion. Sounds like an interesting feature. The package is not actively maintained right now, and I can't promise I'll look into that. However, I'm open to PRs with new features and bug fixes. Contributions and help are very welcome.

wistful avatar Jan 24 '21 04:01 wistful