-
-
Notifications
You must be signed in to change notification settings - Fork 891
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
Emacs lsp client for python ruff language server #3876
Comments
I would like to invoke Cunningham's law and post the configuration I'm using (which doesn't work too well, but it does nevertheless):
I've tried to accomodate |
Thanks to @yyoncho, current version looks like this:
It seems to be working for me. Poetry is still not optional (i.e. |
@ahonnecke I'm pretty sure |
@rassie Oh, apologies. Upon restarting and re-evaluating it does not seem to have negatively affected auto-completion. It seems that there are two types of integration offered, one through flycheck flycheck/flycheck#1974 and this implementation. I'm not really clear on what the respective benefits and drawbacks are. If I can help get this to work with pipenv, or test anything let me know. thanks! |
@rassie I have
|
@ahonnecke That's a good question, I don't I can answer it fully (maybe @yyoncho can give a hint what might be missing). I'm a In regards to Flycheck integration: I'm using the |
I managed to get it working and managed to make a working client file based loosely off clients/lsp-pylsp.el as well as the other clients, with all of ruff-lsp's settings except I still need to write the documentation to go with it, but once I have it, I will be submitting a pull request. |
I actually have a question about writing the documentation for it. docs/page doesn't have any of the markdown files for any of the clients in mkdocs.yml. Is this autogenerated or am I looking in the wrong place? |
I sorted out the documentation I think, so I made a pull request. Unfortunately, it does not currently support poetry like the implementation written earlier by @rassie . |
The newest version of |
@frejanordsiek I don't use Edit: @yyoncho perhaps you can advise? |
I think it is actually |
So ruff is an extremely fast linter for python.
There already is a language server for python-ruff https://github.com/charliermarsh/ruff-lsp. This is similar in functionality to the eslint language server and would probably be used in conjunction with pylsp for completions similar to how eslint lsp is used alongside the ts language server.
Here is the relevant issue on the repository astral-sh/ruff-lsp#19
It would be great if we could have a client for ruff-lsp so that we can leverage the extremely fast linting.
The text was updated successfully, but these errors were encountered: