Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[examples] pep8 fix E26*#3668

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
tacaswell merged 3 commits intomatplotlib:masterfromtwmr:pep8fix26
Oct 22, 2014
Merged

Conversation

twmr
Copy link
Contributor

E261 at least two spaces before inline comment
E262 inline comment should start with ‘# ‘
E265 block comment should start with ‘# ‘
E266 too many leading ‘#’ for block comment

This PR also fixes some E211 (whitespace before ‘(‘ ) errors overseen by the autopep8/pep8 tool.

and minor modification of the output of autopep8 where appropriate
Signed-off-by: Thomas Hisch <t.hisch@gmail.com>
@twmr
Copy link
ContributorAuthor

If it is too cumbersome to review I can split this PR into 2 parts

@@ -110,8 +110,6 @@ def __init__(self, sigma, fraction=0.5):
self.gauss_filter = GaussianFilter(sigma, alpha=1)
self.light_source = LightSource()
self.fraction = fraction
#hsv_min_val=0.5,hsv_max_val=0.9,
# hsv_min_sat=0.1,hsv_max_sat=0.1)
Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

unused code even if the comments are removed

@tacaswelltacaswell added this to thev1.5.x milestoneOct 18, 2014
@tacaswell
Copy link
Member

Are you doing any triaging on the examples while doing this?

@twmr
Copy link
ContributorAuthor

Yes, first I want to fix all the white-space issues (E2*) and then the rest. I order the white-space fix PRs such that each PR can be easily reviewed. The next planned big PR fixes E231 (missing whitespace after ‘,’ ) and the one (or two) after that all other white-space issues.

@jenshnielsen
Copy link
Member

Btw someone should probably fix the warnings in the examples when you are done with the pep8 fixes. It would be nice if building the examples did not raise all these warnings. I will hold off doing anything about this until you are done with the pep8 fixes to avoid merge conflicts.

@twmr
Copy link
ContributorAuthor

@jenshnielsen which warnings do you mean?

@jenshnielsen
Copy link
Member

Look at the travis output of building the docs. Several of the examples raises warnings when run

@twmr
Copy link
ContributorAuthor

Strange. I can reproduce those warnings. I'll try to fix them once we are done with the pep8 fixes.

@twmr
Copy link
ContributorAuthor

Any other comments?

@@ -22,7 +22,7 @@
for i in range(len(DATA)):
(x,y) = DATA[i]
(dd, dl, r, dr, dp) = dash_style[i]
#print'dashlen call', dl
#print('dashlen call %d' % dl)
Copy link
Member

Choose a reason for hiding this comment

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

Yay for fixing syntax in comments!

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Such stuff still has to be done manually :/

tacaswell added a commit that referenced this pull requestOct 22, 2014
@tacaswelltacaswell merged commitc17fb8c intomatplotlib:masterOct 22, 2014
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
v2.1
Development

Successfully merging this pull request may close these issues.

4 participants
@twmr@tacaswell@jenshnielsen@QuLogic

[8]ページ先頭

©2009-2025 Movatter.jp