I have a symbolic link in /opt/ that points to my project directory, as a shortcut that I can use in bash scripts, the terminal, etc. Sometimes while debugging, Cursor will open files from within /opt/, which can cause confusion with breakpoints, the Ruff formatter, and beyond.
I tried adding /opt/ to .cursorignore (and reindexing), but that didn’t help.