-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Format code according to Python recommendations - PEP 8 #37
Comments
+1. PEP8 is practically universally accepted. Even if you don't adopt PEP8, you should define/document your coding standard conventions in order to allow contributions to be consistent with the existing code base. |
+1 I would be strongly in favour of PEP8 also. |
+1 |
+1 Could please someone from core Mailpile developers take a look at this? External contribution is not easy because the diff would be huge, and there is even a security risk because of that. |
We are going to slowly move in this direction. New source files will be PEP 8 compliant and we'll be cleaning up the old ones a little bit at a time. |
Since @markberger has said he doesn't have enough time to keep working on this issue, I'd be glad to take over and help making old files compliant with PEP8 (there's also some pyflakes cleanup to be done). I agree with @kmike that this is going to produce huge diffs, so maybe we could do it little by little, on file at a time. What do you think? |
After formatting the one file, I would recommend committing indentations On Thursday, September 19, 2013, Gabriel Rodríguez Alberich wrote:
|
@vibragiel : Thank you for the generous offer. I only hesitate to take you up on it because we are still doing extensive refactoring and stuff is getting reorganized a lot. We may circle back and accept your offer in a couple of weeks if/when things settle down a bit. @markberger : Agreed! |
@BjarniRunar Okay, we can do that. I'm used to convert code into PEP8, so I don't think it will take too long to get all of Mailpile worked out. Just give me a whistle when you feel ready :-) |
I would like to help with this task. Please let me know if you need any help on this matter. |
Thanks @jventuravs ! However, as discussed in #244, we have come to the conclusion that it is better for the core team to do the majority of this work, all the changes need to be reviewed by a core member for security reasons and for routine and semi-automated changes that most pep8 fixes are, it's actually a lot easier for us to just do the work ourselves than review and merge pull requests. We have actually already made good progress, about half the files now comply with the tests from the Debian 7.2 version of the pep8 tool. |
Great, thanks for the heads up. Will be looking for some other way to contribute. Great project by the way, can't wait to use it! |
FYI: a collegue of mine showed a trick to remove whitespace changes from github diff: add |
As of commit e1dd83e, the pep8 tool as shipped with Ubuntu 13.10 has virtually no complaints. I am closing this issue, we'll periodically rerun the tool and fix things that drift out of line. |
Since Mailpile claims to be a piece of software related to security, its source code should be widely reviewed. Please adhere to well-established standards of writing Python code.
http://www.python.org/dev/peps/pep-0008/
http://www.pylint.org/
The text was updated successfully, but these errors were encountered: