astral-sh / ruff-vscode

A Visual Studio Code extension with support for the Ruff linter.
Other
945 stars 45 forks source link

Native sever should not rely python #503

Closed karthiknadig closed 1 week ago

karthiknadig commented 1 week ago

Ruff with native server should not use python to run: image

If ruff needs python path it should be passed in via either initializationOptions or with workspace configuration change.

MichaReiser commented 1 week ago

That makes sense. There's currently one python file left and we should try to rewrite it to Typescript to cap the Python dependency. See https://github.com/astral-sh/ruff-vscode/issues/479

charliermarsh commented 1 week ago

I don't understand how we would find the Ruff binary without invoking python.

charliermarsh commented 1 week ago

That's the only reason we rely on Python. We need to introspect sysconfig.