-
-
Notifications
You must be signed in to change notification settings - Fork 18k
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
Autopep8 #2632
Autopep8 #2632
Conversation
Some lines were changed manually (those which may change the logic). Have not fixed E501 line too longs, these are the only pep8 failures. Check current pep8 compliance of all py files in current directory: for f in *.py; do pep8 $f; done Run autopep8 on py files in current directory: for f in *.py; do autopep8 -i $f; done
66fc98f Arising from correcting PEP8 E712, changing == boolean to is boolean. Possible that these are bugs in the tests?
To give some idea of the improvements from this, you could run (in pandas/pandas; apologies for poor shell-foo):
Comparing the two branches:
Note: the 4,3,4 results are all from
Of course, the health warning being that pep8 may not catch all PEP8 compliance issues. |
Thanks for doing this. I guess I should just merge this before there are too many conflicts. The main pep8 thing I have trouble with is 2 blank lines between top level function/class defs. harumph |
Used autopep8 to make all of pandas py files more PEP8 compliant (Excluding 230
E501 lines too long
(over 80 chars), and 6 changes which had to be reverted to fix test failures - in second commit). See statistics in my comment.I iterated over every py file in the package using autopep8, inspected the output of pep8 to drill-down and consider any compliance issues found which may change the meaning of the code (and considered those individually).
I haven't included a unittest for PEP compliance using pep8.
For me this passes all the same tests as the master branch.
Since this affects such a large set of the code it may not be reasonable to pull, however it is certainly a proof of concept.