wistful / SublimeAutoPEP8

Automatically formats Python code to conform to the PEP 8 style guide using autopep8 and pep8 modules
144 stars 23 forks source link

Pep8 config file location doesn't allow per-directory settings #67

Open stinos opened 3 years ago

stinos commented 3 years ago

Because https://github.com/wistful/SublimeAutoPEP8/blob/master/sublautopep8.py#L150 uses folder the only location custom .pep8 or tox.ini or similar are searched for is in the project directory (and upwards from that, looking at the autopep8 code). That is a bit limiting and also confusing because it does not match with the autopep8 documentation https://github.com/hhatto/autopep8#configuration. Using file_path instead would fix this, though possibly break existing usage.

wistful commented 3 years ago

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.