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

Mep12 image origin.py #4950

Merged
merged 4 commits into from Aug 19, 2015
Merged

Mep12 image origin.py #4950

merged 4 commits into from Aug 19, 2015

Conversation

ericmjl
Copy link
Contributor

@ericmjl ericmjl commented Aug 17, 2015

No description provided.

@jenshnielsen jenshnielsen added the MEP: MEP12 gallery and examples improvements label Aug 18, 2015
x.shape = (10, 10)

interp = 'bilinear'
#interp = 'nearest'
# interp = 'nearest'
Copy link
Member

Choose a reason for hiding this comment

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

your autopep8 is showing again... it is not supposed to be putting a space in here for commented out code. This is true in a few places.

Copy link
Member

Choose a reason for hiding this comment

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

my editor complain to be about that too, I tend to fix those when I go on pep8 binges.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

interesting, I didn't do autopep8. Maybe my mind is autopep8-ing the code........ Let me fix that.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thing is, the pep8 check will fail if I don't insert the space. That will affect the pep8-checking build on Travis, causing it to fail.

Copy link
Member

Choose a reason for hiding this comment

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

We have a pretty extensive black list of ignored pep8 rules (such as the pair that as near as I can tell are conflicting).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, got it. Removing...

Copy link
Member

Choose a reason for hiding this comment

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

Besides, if your linter is saying that that removing that space is a
violation of PEP8, then it is broken. Any linter that can not recognize
commented-out code is not worth using (in any language).

On Tue, Aug 18, 2015 at 8:14 PM, Eric Ma notifications@github.com wrote:

In examples/pylab_examples/image_origin.py
#4950 (comment):

x.shape = (10, 10)

interp = 'bilinear'
-#interp = 'nearest'
+# interp = 'nearest'

Ok, got it. Removing...


Reply to this email directly or view it on GitHub
https://github.com/matplotlib/matplotlib/pull/4950/files#r37368671.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Right now I'm doing checking without a linter. Basically running vanilla pep8 [filename].py.

WeatherGod added a commit that referenced this pull request Aug 19, 2015
@WeatherGod WeatherGod merged commit abfee3f into matplotlib:master Aug 19, 2015
@ericmjl ericmjl deleted the mep12-image_origin.py branch August 19, 2015 01:54
@QuLogic QuLogic added this to the v1.5.0 milestone Nov 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
MEP: MEP12 gallery and examples improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants