Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Static type checking with mypy #378

Open
mwip opened this issue Feb 5, 2024 · 2 comments
Open

Feature request: Static type checking with mypy #378

mwip opened this issue Feb 5, 2024 · 2 comments

Comments

@mwip
Copy link

mwip commented Feb 5, 2024

I love the work that is done with ruff. Its capabilities and speed help me improve my, and I'm sure other's, code quality significantly. Currently, I am also using mypy for static type checking during development, which has a similar effect on improving code quality.

For now, I was only able to combine ruff and mypy with a python-lsp-server setup. Are there any plans to integrate static type checking in ruff-lsp?

@T-256
Copy link

T-256 commented Feb 10, 2024

Also, see astral-sh/ruff#3893

@thecaralice
Copy link

You can use pyright - in my experience it does a better job than mypy at type-checking, does not require python to work (which means you won't face any issues like conflicting dependencies between your project and mypy) and provides its own LSP server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants