-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Improving the dev workflow: Milestone 1.1.1 Enable Pycodestyle rules and fix errors #4937
Conversation
Update Fork
Update Fork
Update Fork
Update Fork
Update Fork
Update Fork
Update fork
Update fork
Update fork
Update fork
Update fork
Update Fork
Update fork
Update fork
Update fork
Codecov Report
@@ Coverage Diff @@
## develop #4937 +/- ##
========================================
Coverage 44.16% 44.16%
========================================
Files 386 386
Lines 23289 23289
Branches 3789 3789
========================================
Hits 10286 10286
Misses 13003 13003 Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @apb7, I've made some comments, ptal!
core/controllers/editor_test.py
Outdated
@@ -1659,7 +1659,7 @@ def test_draft_not_updated_validation_error(self): | |||
'%s.%s' % (self.owner_id, self.EXP_ID2)) | |||
self.assertEqual( | |||
exp_user_data.draft_change_list, self.DRAFT_CHANGELIST) | |||
#id is incremented the first time but not the second. | |||
#id is incremented the first time but not the second. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a space after #
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
@@ -236,8 +236,8 @@ def print_details(self): | |||
"""Helper function to print details for all the events.""" | |||
if self.page_session_stats: | |||
print 'Total number of requests: %d' % self.get_request_count() | |||
print ('Total page size in bytes: %d' | |||
% self.get_total_page_size_bytes()) | |||
print('Total page size in bytes: %d' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will unfortunately change our print style (since we don't use print(...)
convention). Since the Google Style guide on strings do allow the old method, we should follow it. Will it be possible to make an exception for this type of rule?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This goes for the same elsewhere.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reverted this at all places. Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, thanks @apb7!
Thank you, @kevinlee12! |
Explanation
Checklist
python scripts/pre_commit_linter.py
andbash scripts/run_frontend_tests.sh
.