-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
setup.cfg ignored #24
Comments
I too am having this issue. It causes conflicts with project-specific pep8 settings, which is inhibitory in some use-cases where you want to enforce formatting settings across all dev environments. I'm going with a git precommit hook for now instead of an emacs plugin. |
The same here, I had to disable py-autopep8 :/ Any work around for this issue? |
This happened because the temporary file caused the local configuration not to be detected. Resolved in my repo which used stdin/stdout pipes to format, changing the working directory to that of the file causes the configuration to be loaded properly in my tests https://github.com/ideasman42/emacs-py-autopep8/commit/171a69198e7a379622b84a51239f3e621219f9a0 |
Melpa now points to a fork of this package maintained here: https://github.com/ideasman42/emacs-py-autopep8 Detecting local configuration is supported, although I've only added support for |
I'd like to be able to disable autopep8 by default, and enable on a per-repository basis.
I have the following:
~/.config/pep8:
$PROJECT/setup.cfg
When I run
autopep8 $PROJECT/bad.py
, this behaves as I expect, andbad.py
is printed with errors corrected. Furthermore, if I removesetup.cfg
,autopep8
will respect the user config and will no longer correct errors.However, if I open up
bad.py
with emacs,py-autopep8
reports the buffer as already pep8ified, as ifsetup.cfg
wasn't there. (py-autopep8
works fine if I edit the user config, but that's not the behavior I want).The text was updated successfully, but these errors were encountered: