Thanks to visit codestin.com
Credit goes to github.com

Skip to content

ci: Fix linting being ignored by reviewdog #18091

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

Merged
merged 3 commits into from
Jul 28, 2020

Conversation

QuLogic
Copy link
Member

@QuLogic QuLogic commented Jul 28, 2020

PR Summary

PR Checklist

  • [n/a] Has Pytest style unit tests
  • Code is Flake 8 compliant
  • [n/a] New features are documented, with examples if plot related
  • [n/a] Documentation is sphinx and numpydoc compliant
  • [n/a] Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there)
  • [n/a] Documented in doc/api/next_api_changes/* if API changed in a backward-incompatible way

QuLogic added 3 commits July 28, 2020 00:28
For certain reporters, it's necessary to do this filtering because
GitHub does not allow posting to unrelated files. The github-check
reporter _should_ allow it though, and we want to catch things like
unused imports that may not be in the diff.
@QuLogic QuLogic changed the title ci: Add tee to debug reviewdog. ci: Fix linting being ignored by reviewdog Jul 28, 2020
@QuLogic QuLogic added this to the v3.3.1 milestone Jul 28, 2020
@QuLogic
Copy link
Member Author

QuLogic commented Jul 28, 2020

I'm not entirely sure why it didn't complain in #17822, but I've disabled the filter entirely. For certain reporters, errors outside the diff would be a problem, but this does work with the one we are using. And we want to catch things that might be outside the diff, like imports no longer being used.

@dopplershift dopplershift merged commit 560ccff into matplotlib:master Jul 28, 2020
@lumberbot-app
Copy link

lumberbot-app bot commented Jul 28, 2020

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.3.x
$ git pull
  1. Cherry pick the first parent branch of the this PR on top of the older branch:
$ git cherry-pick -m1 560ccffce3200c6713e7d29beee6aaf382c53adc
  1. You will likely have some merge/cherry-pick conflict here, fix them and commit:
$ git commit -am 'Backport PR #18091: ci: Fix linting being ignored by reviewdog'
  1. Push to a named branch :
git push YOURFORK v3.3.x:auto-backport-of-pr-18091-on-v3.3.x
  1. Create a PR against branch v3.3.x, I would have named this PR:

"Backport PR #18091 on branch v3.3.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 to suggest an improvement.

@tacaswell
Copy link
Member

I'm 50/50 on backporting the linting config to 3.3.x.

@dopplershift
Copy link
Contributor

Since we never merge from 3.3.x to master, it might not be worth it. The branch has a life of what, 6-12 months?

@QuLogic QuLogic deleted the flake8 branch July 28, 2020 21:39
@QuLogic
Copy link
Member Author

QuLogic commented Jul 28, 2020

We do merge up; I plan to do so after 3.3.1, as it fixes the git describe result.

@dopplershift
Copy link
Contributor

Ah, ok. Then yes (as you've done)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants