Search code examples
pycharmmypy

MyPy error paths in PyCharm Terminal not clickable


when I run MyPy in the Terminal of PyCharm in the root directory of the project, the paths of the result are blue, underlined, and clickable. enter image description here

But when I run mypy from the subfolder (mono repo with front and backend) where the actual python code lives, it is not clickable. This is also the folder with my pyproject.toml lives. enter image description here

Is there a way to get this clickable? Maybe by setting a working directory for the terminal somewhere? I didn't find anything like that. I have my code root directory marked as sources root, but couldn't figure out how to get paths clickable.


Solution

  • There is a CLI option to output absolute paths: --show-absolute-path.

    Here's the result on my machine (I'm using Windows/PowerShell, but that shouldn't make a difference):