python-lsp / pylsp-mypy

Mypy plugin for the Python LSP Server.
MIT License
129 stars 37 forks source link

improve(other linter hook waits for mypy analysis to end) : try to ru… #92

Closed KMohZaid closed 1 month ago

KMohZaid commented 1 month ago

…n mypy linter last if possible

mypy sometime takes longer to analysis ( specially long codebase)

P.S. : i think it wouldn't help in anyway because pylsp sends all diagnostic together :( (maybe in future we can fix it, if possible to send mypy diagnostic later)

Richardk2n commented 1 month ago

This would not change anything. mypy is (relatively) slow, because it does a lot. There is no way around that. For larger projects using dmypy can help considerably. I would prefer asynchronous execution as well, but anything I could do here would be more like a hack. And I don't see pylsp implementing something like that, as the other plugins don't need it.

KMohZaid commented 1 month ago

yea, i tested and find out that pylsp waits for every hooked method to return data