This repository has been archived by the owner on Sep 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Code cleanup. #26
Labels
Milestone
Comments
Here is a tool that helps with this: NOTE: this tool complains about some crazy things I don't care about. |
Not a priority for now, we have too many issues pending to care about this. In fact, we don't really have a coding guide to follow at MH. Probably this is a good discussion to bring to our labs list first. |
Fine, I volunteered to do it and I could do it quickly (today). I'll post to the Labs list. |
Also:
|
Looks like @nukeador already went through and fixed |
I think I took care of most imports, in any case, I'll try to check if they are OK each time I make a change to a .py file. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I was looking at the code and wasn't sure if this was python or java or javascript or something else. Joking aside, it doesn't follow the normal python coding styles.
In webdev at Mozilla, we are pretty strict following pep8 and such. See:
http://mozweb.readthedocs.org/en/latest/coding.html#python
Some things that should be fixed:
db_column
parameter or we could migrate everything to new database column names.form=RegistrationForm(instance = event)
which should beform = RegistrationForm(instance=event)
Anyway, I volunteer to clean it up if nobody is opposed? It would create a huge merge conflict with any work-in-progress though.
Thoughts? Should I jump on this? It would make me more likely to contribute further to the project ❤️
The text was updated successfully, but these errors were encountered: