Usage

mypy-gh-action-report --help Usage: mypy-gh-action-report [OPTIONS] [MYPY_OUTPUT] Options: --json-only / --no-json-only Just convert mypy output to json [default: no-json-only] v, --version Show version --help Show this message and exit.

For the following Mypy output:

mypy_gh_action_report/types.py:3: error: "list" expects 1 type argument, but 2 given  [type-arg]
mypy_gh_action_report/models.py:13: error: Function is missing a return type annotation  [no-untyped-def]
Found 8 errors in 4 files (checked 7 source files)

mypy-gh-action-report can generate:

mypy . | mypy-gh-action-report ::warning title=,file=mypy_gh_action_report/types.py,line=3,endLine=,col=,endColumn=::"list" expects 1 type argument, but 2 given ::warning title=,file=mypy_gh_action_report/models.py,line=13,endLine=,col=,endColumn=::Function is missing a return type annotation

or, with --json-only flag:

mypy . | mypy-gh-action-report --json-only [{"file_name": "mypy_gh_action_report/types.py", "line_no": 3, "error_code": "type-arg", "type": "error", "message": "\\"list\\" expects 1 type argument, but 2 given"}, {"file_name": "mypy_gh_action_report/models.py", "line_no": 13, "error_code": "no-untyped-def", "type": "error", "message": "Function is missing a return type annotation"}]