astral-sh/ruff-vscode

Ruff version mismatch

lociii opened this issue · 5 comments

Repository on GitHub lists 0.4.1 as a dependency, however the extension downloadable from the marketplace ships with 0.4.2.

This makes it pretty unpredictable to keep the ruff version in sync with other tools (like pre-commit or build pipelines).

Interesting! I think that's the pre-release version you're looking at. The release version does ship with 0.4.1 Ruff version. I'm not sure how to switch the linked page to show the latest release version instead.

Screenshot 2024-05-15 at 13 24 03

You can see it in the pre-release branch that the Ruff version is 0.4.2:

dependencies = ["packaging>=23.1", "ruff-lsp==0.0.53", "ruff==0.4.2"]

Interesting. Thanks for the clarification.
This is very confusing as there is no way to find out about production or pre-release on that marketplace page.

Yeah, I think the page uses the latest version. The way the different versions work is that even numbers are used for stable versions and odd numbers are used for pre-release versions. So, the latest version will always be the pre-release version.

I'm not sure we can do anything here :(

The good news is that they'll be unified soon (the versions will be the same across pre-release and stable).

These are now aligned.