Skip to content
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

Merged
merged 17 commits into from
May 15, 2018
Merged

Improving the dev workflow: Milestone 1.1.1 Enable Pycodestyle rules and fix errors #4937

merged 17 commits into from
May 15, 2018

Conversation

apb7
Copy link
Contributor

@apb7 apb7 commented May 14, 2018

Explanation

Checklist

  • The PR title starts with "Fix #bugnum: ", followed by a short, clear summary of the changes.
  • The PR explanation includes the words "Fixes #bugnum: ...".
  • The linter/Karma presubmit checks have passed.
    • These should run automatically, but if not, you can manually trigger them locally using python scripts/pre_commit_linter.py and bash scripts/run_frontend_tests.sh.
  • The PR is made from a branch that's not called "develop".
  • The PR follows the style guide.
  • The PR is assigned to an appropriate reviewer.
    • If you're a new contributor, please ask on Gitter for someone to assign a reviewer.
    • If you're not sure who the appropriate reviewer is, please assign to the issue's "owner" -- see the "talk-to" label on the issue.

@apb7 apb7 requested a review from kevinlee12 May 14, 2018 15:18
@apb7 apb7 self-assigned this May 14, 2018
@codecov-io
Copy link

codecov-io commented May 14, 2018

Codecov Report

Merging #4937 into develop will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           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.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 37ea74f...c8c22c6. Read the comment docs.

Copy link
Contributor

@kevinlee12 kevinlee12 left a 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!

@@ -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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a space after #

Copy link
Contributor Author

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'
Copy link
Contributor

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?

Copy link
Contributor

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.

Copy link
Contributor Author

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!

@apb7 apb7 assigned kevinlee12 and unassigned apb7 May 15, 2018
Copy link
Contributor

@kevinlee12 kevinlee12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, thanks @apb7!

@apb7
Copy link
Contributor Author

apb7 commented May 15, 2018

Thank you, @kevinlee12!

@kevinlee12 kevinlee12 merged commit ae3aa09 into oppia:develop May 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants