Skip to content

PEP8 and pyflakes fixes #4610

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

Closed
wants to merge 2 commits into from
Closed

PEP8 and pyflakes fixes #4610

wants to merge 2 commits into from

Conversation

adamn
Copy link

@adamn adamn commented Oct 21, 2016

This is a follow-up to #4600 and fixes the pyflakes problems produced there. Unfortunately (fortunately!), this exposed a bunch of PEP8 warnings that are now fixed. I was pretty rigorous about the line length.

One thing that some people might not like is that where it used to say serializers.Serializer in the files I changed, it now says Serializer. I'm not averse to the other way but it was a simpler fix to just move it over since we were using classes like serializers.ModelField all over the place which was incorrect because ModelField is in fields.

I did not change any functionality nor fix any code warnings - just formatting and imports.

@adamn
Copy link
Author

adamn commented Oct 21, 2016

Hrmph, just realized that runtests.py ignores E501 for the line length. We really should use a .flake8 file for that so people running flake8 directly (like me) use the project's customized global style.

Or better, start following E501 :-)

@tomchristie
Copy link
Member

The serializers.* style is here to stay - it's needed to explicitly differentiate between forms.<whatever> and models.<whatever>.

Different approach needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants