Open
Description
See the "Added warnings" comment, it is not assigned to any report:
$ cat /tmp/test.err
# ================
# Added warnings
# ================
Error: MYPY_ERROR:
copr_backend/constants.py:9: mypy[error]: Need type annotation for "DEF_REPOS" (hint: "DEF_REPOS: List[<type>] = ...")
Error: MYPY_ERROR:
copr_backend/constants.py:13: mypy[error]: Need type annotation for "DEF_MACROS" (hint: "DEF_MACROS: Dict[<type>, <type>] = ...")
Error: MYPY_ERROR:
copr_backend/helpers.py:26: mypy[error]: Library stubs not installed for "pytz" (or incompatible with Python 3.11)
Error: MYPY_NOTE:
copr_backend/helpers.py:26: mypy[note]: Hint: "python3 -m pip install types-pytz"
Error: MYPY_NOTE:
copr_backend/helpers.py:26: mypy[note]: (or run "mypy --install-types" to install all missing stub packages)
Error: MYPY_NOTE:
copr_backend/helpers.py:26: mypy[note]: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
Error: MYPY_ERROR:
copr_backend/helpers.py:31: mypy[error]: Library stubs not installed for "redis" (or incompatible with Python 3.11)
Error: MYPY_NOTE:
copr_backend/helpers.py:31: mypy[note]: Hint: "python3 -m pip install types-redis"
i
But csgrep assigns the rport to one of the issues:
$ csgrep -v --path copr_backend/helpers.py < /tmp/test.err
Error: MYPY_ERROR:
# ================
# Added warnings
# ================
copr_backend/constants.py:9: mypy[error]: Need type annotation for "DEF_REPOS" (hint: "DEF_REPOS: List[<type>] = ...")
Error: MYPY_ERROR:
copr_backend/constants.py:13: mypy[error]: Need type annotation for "DEF_MACROS" (hint: "DEF_MACROS: Dict[<type>, <type>] = ...")