You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add a new output format option to print errors as GitHub Actions Workflow commands #17612
Add a new --output=github option to format errors as Workflow commands, similar to --output=json added in #11396.
Pitch
For example, for this output in JSON format
$ mypy src --output=json{"file": "src/mylib/client.py", "line": 759, "column": 20, "message": "Argument 1 to \"export_responses\" of \"Client\" has incompatible type \"str\"; expected \"int\"", "hint": null, "code": "arg-type", "severity": "error"}
we'd get the following output in workflow command format
$ mypy src --output=json::error file=src/mylib/client.py,line=759,col=20::(`arg-type`) Argument 1 to "export_responses" of "Client" has incompatible type "str"
I'm not the person who opened the issue, but yes, I think this would support allowing annotations, similar to ruff check --output-format github or using pylint with the pylint-actions plugin.
I'm not the person who opened the issue, but yes, I think this would support allowing annotations, similar to ruff check --output-format github or using pylint with the pylint-actions plugin.
Activity
wyardley commentedon Sep 13, 2024
This would be super handy
webknjaz commentedon Sep 13, 2024
@edgarrmondragon do you mean using the annotations feature?
wyardley commentedon Sep 13, 2024
I'm not the person who opened the issue, but yes, I think this would support allowing annotations, similar to
ruff check --output-format githubor using pylint with thepylint-actionsplugin.edgarrmondragon commentedon Sep 13, 2024
Yeah, these: https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/workflow-commands-for-github-actions
Exactly!
edgarrmondragon commentedon Sep 27, 2024
A PR is up if anyone's interested: #17771
mschoettle commentedon Oct 23, 2024
Based on this comment here (#11396 (comment)) I am not sure what the likelihood of this getting accepted will be.
(Until this comment I was hoping to have a code quality/gitlab output in mypy directly instead of relying on an extra plugin)
blyedev commentedon Jan 12, 2025
What's the status of this feature? I'd love to use it in my CI