-
Notifications
You must be signed in to change notification settings - Fork 72
Add problem-matchers for Pylint, MyPy, and Black #1580
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
Conversation
GitHub [Problem Matchers](https://github.com/actions/toolkit/blob/main/docs/problem-matchers.md) are a mechanism that enable workflow steps to scan the outputs of GitHub Actions for regex patterns and automatically write annotations in the workflow summary page. Using Problem Matchers allows information to be displayed more prominently in the GitHub user interface. This adds a problem matcher for Pylint output. In the near future, we will almost certainly add more problem matchers, so this also starts a README file where we can acknowlege where they come from as we add them.
@@ -130,6 +134,8 @@ jobs: | |||
python -m pip install --upgrade pip | |||
pip install -r dev_tools/requirements/envs/dev.env.txt | |||
pip install --no-deps -e . | |||
- name: Set up problem matcher for Mypy output | |||
run: echo '::add-matcher::.github/problem-matchers/mypy.json' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just echoing things triggers this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know it looks bonkers, but believe it or not, that bit with the ::add-matcher::
is the special sauce that GitHub uses to detect what's happening. Why this syntax and not something more clear? ¯_(ツ)_/¯
GitHub Problem Matchers are a mechanism that enable workflow steps to scan the outputs of GitHub Actions for regex patterns and automatically write annotations in the workflow summary page. Using Problem Matchers allows information to be displayed more prominently in the GitHub user interface.
This add problem matchers for Pylint, Mypy and Black output.