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

How to find ruff dynamically? #599

Open
kaddkaka opened this issue Oct 18, 2024 · 0 comments
Open

How to find ruff dynamically? #599

kaddkaka opened this issue Oct 18, 2024 · 0 comments

Comments

@kaddkaka
Copy link

Let's say I have a system global python-lsp-server installed, is it possible to make it load and get diagnostics from ruff via PATH and also adhering to the project pyproject settings?

For example:

  • Project A: ruff 0.4.4
  • Project B: ruff 0.6.0
  • Project C: ruff 0.6.0 with different rules enabled

The different version of ruff are "loaded" using nix-direnv when I enter the folder for each project.

python-lsp-ruff seems to install its own version of ruff (0.7.0 as of today), which doesn't match either of the projects. see related issue here: python-lsp/python-lsp-ruff#100

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

1 participant