Add flake8 problem matcher#3714
Conversation
|
I just want to double check this won't be effected by the changes in #3694. In particular, the output from flake8...................................................................Failed
- hook id: flake8
- exit code: 1
beetsplug/chroma.py:1:1: FI10 __future__ import "division" missing
beetsplug/chroma.py:1:1: FI11 __future__ import "absolute_import" missing
beetsplug/chroma.py:1:1: FI13 __future__ import "print_function" missing |
I like it with the error code, but probably not worth it if it's too much trouble |
|
Changed in 5d24cb0 - was a nice and easy fix 👍 |
|
will anything change if you do |
|
I don't think so — the match is working correctly but GitHub just doesn't display the code anywhere in their UI. I'll give it a shot in a bit though to see if anything interesting happens. |
Ah okay, I see what you're saying now. Well this looks cool! I'm excited to see it in action. I think you should feel free to merge when you're ready 👍 |
|
Awesome, thanks! |
|
Wow, this is awesome! I didn't know this was possible. This will be such a time saver!! |
|
Wow... This was a lot easier than expected. Nice work guys. |
|
There may be some beneifts to using custom actions but this seemed like the path of least resistance for the time being. |
|
That makes sense to me. Much easier just to put in this way rather than wrap it up another action. We could've used local actions, but IMO that would be even worse (readability) I suppose. Nice work! |


Description
This PR implements the flake8 half of #3614 using a problem matcher, giving us nice inline errors like this on PRs:
I've had to disable
PY_COLORShere, as the ANSI escape sequences were tripping up the regex used in the matcher.To Do
docs/to describe it.)docs/changelog.rstnear the top of the document.)