-
Notifications
You must be signed in to change notification settings - Fork 432
Conversation
Thanks for the multiple well-formed commits. What do you make of Travis being displeased with this pull request? |
Simply ran pep8ify -w oauth2client/ pep8ify -w tests/
Found the files via: $ git ls-files '*py' | egrep -v \'^tests/\' | egrep -v '^oauth2client/'
This is all errors except E402: module level import not at top of file. This is because in most (all?) files the __author__ global comes before imports begin. Ref: http://stackoverflow.com/a/24859703/1068170
Both test_appengine.py and test_django_orm.py still fail E402 since they have some environment fixes during import (e.g. dev_appserver.fix_sys_path() and changes to django.conf.global_settings)
This is to address PEP8 E402 as in previous commit.
Covers a few unexplained dedents (pep8ify missed them) and an accidental use of b'.'.
The error was:
I just As for the coverage drop, I kind of just brush that off. It's probably because some long lines made the total line count go up, e.g. # 2 spaces
foo = datetime.datetime.utcnow() + datetime.timedelta(seconds=3600) becoming # 4 spaces
foo = (datetime.datetime.utcnow() +
datetime.timedelta(seconds=3600)) |
@nathanielmanistaatgoogle Travis passes now and there is still that tiny |
Yeah, I agree about brushing off the coverage drop. Re-reviewing now... |
LGTM; anything else to be done here? |
Nope. But I'd be wary of making a new release until we have 100% test coverage. |
Makes all code PEP8 compliant.
Fixes #137.
Note that running
pep8 $(git ls-files '*py')
still has some failures. These are caused by
test_appengine.py
sincedev_appserver.fix_sys_path()
happens before some importstest_django_orm.py
since modifications todjango.conf.global_setting
happen before some importsand the rest are