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

Make boilerplate-generated pyplot.py flake8 compliant#12236

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

Conversation

timhoffm
Copy link
Member

PR Summary

This does two things:

  • Correct the number of lines between boilerplate functions (E302).
  • Add# noqa to lines likeif isinstance(__ret, cm.ScalarMappable): sci(__ret).
    flake 8 complains that this should be wrapped (E701). However that's cumbersome to get a correct indentation. Since these are just 5 cases and it's in autogenerated code, which likely nobody will read anyway, I prefer the explicit exclusion of these lines compared to deactivating E701 for the whole file.

PR Checklist

# Autogenerated by boilerplate.py. Do not edit as changes will be lost."""

CMAPPABLE_TEMPLATE = AUTOGEN_MSG + """
CMAPPABLE_TEMPLATE =AUTOGEN_MSG + """
Copy link
Contributor

Choose a reason for hiding this comment

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

Why'd we pick up a space here?

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Sorry, typo.

@timhoffmtimhoffm added this to thev3.0.x milestoneSep 23, 2018
@dopplershiftdopplershift merged commitf8bda74 intomatplotlib:masterSep 23, 2018
@lumberbot-app
Copy link

Owee, I'm MrMeeseeks, Look at me.

There seem to be a conflict, please backport manually. Here are approximate instructions:

  1. Checkout backport branch and update it.
$ git checkout v3.0.x$ git pull
  1. Cherry pick the first parent branch of the this PR on top of the older branch:
$ git cherry-pick -m1 f8bda747c8d6410323498e331a029fb90ef492d1
  1. You will likely have some merge/cherry-pick conflict here, fix them and commit:
$ git commit -am 'Backport PR #12236: Make boilerplate-generated pyplot.py flake8 compliant'
  1. Push to a named branch :
git push YOURFORK v3.0.x:auto-backport-of-pr-12236-on-v3.0.x
  1. Create a PR against branch v3.0.x, I would have named this PR:

"Backport PR#12236 on branch v3.0.x"

And apply the correct labels and milestones.

Congratulation you did some good work ! Hopefully your backport PR will be tested by the continuous integration and merged soon!

If these instruction are inaccurate, feel free tosuggest an improvement.

timhoffm pushed a commit to timhoffm/matplotlib that referenced this pull requestSep 23, 2018
@timhoffmtimhoffm deleted the boilerplate-flake8 branchSeptember 23, 2018 20:44
timhoffm pushed a commit to timhoffm/matplotlib that referenced this pull requestSep 24, 2018
dstansby added a commit that referenced this pull requestSep 24, 2018
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@tacaswelltacaswelltacaswell approved these changes

@dopplershiftdopplershiftdopplershift approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
v3.0.1
Development

Successfully merging this pull request may close these issues.

3 participants
@timhoffm@tacaswell@dopplershift

[8]ページ先頭

©2009-2025 Movatter.jp