-
Notifications
You must be signed in to change notification settings - Fork 46
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
Make ruff
dependency optional
#38
Comments
Is it possible to solve this problem by using the |
Yes, of course, even though it's a small risk factor. It's a matter of remembering to use This is not a
I would like to stress that I would prefer (There is talk of revamping |
It might help you to set up your shell to do |
I know the issue title sounds weird for a "
ruff
language server", but please hear me out, it might make sense in the end. Please keep in mind that I don't quite know how to solve this properly, but I do see the need for it.If we consider a developer who is part of a team effort on a particular project, we can subdivide all the tools they are using in roughly two categories: developer-provided and project-provided.
In any given project, its development team converges on some common ground regarding linting, code formatting etc., including tool versions, so using
ruff
version X on a project is a project-based decision, reflected in this project's dependencies. Other projects might be using a version Y, so having a globalruff
binary installed might be wrong in these circumstances.However, using an IDE/editor with LSP support and its particular
ruff
integration is a decision by the developer for their own comfort. So whether or not they are using VSCode or Emacs or Notepad is not something that should affect other team members. In this case, addingruff-lsp
to the project's dependencies is in best case useless for the people using e.g. VSCode and could be considered rude in some teams ("we don't commit.vscode/
after all either").So we have a situation where
ruff-lsp
should probably be kept out of projects' dependencies and installed (user)-globally, butruff
itself needs to be part of a project. In many cases, there would be no need for a (user)-globalruff
at all, however it's getting installed byruff-lsp
as a dependency nevertheless. It would be nice if there was a way to install it separately and explicitely.The text was updated successfully, but these errors were encountered: