python-lsp / pylsp-mypy

Mypy plugin for the Python LSP Server.
MIT License
118 stars 35 forks source link

Run dmypy against the whole workspace #75

Closed delfick closed 8 months ago

delfick commented 8 months ago

Hi, I was trying to figure out why every time I ran dmypy from my cli it would restart dmypy and I came across this weird bug dmypy seems to have where running it with different files makes it blind to errors. (I've created a bug against mypy here https://github.com/python/mypy/issues/16705)

This suggestion is to make it so that pylsp-mypy runs dmypy against the whole workspace. It seems this plugin already ignores errors for different files.

delfick commented 8 months ago

annoyingly I'm unsure this actually removed the problem, which seems to be more just a general dmypy problem. I don't have a solution for pylsp, I'm gonna close this PR for now.