Skip to content

Fix formatting with custom executable#90

Merged
jhossbach merged 1 commit intopython-lsp:mainfrom
Ultimator14:main
Apr 27, 2024
Merged

Fix formatting with custom executable#90
jhossbach merged 1 commit intopython-lsp:mainfrom
Ultimator14:main

Conversation

@Ultimator14
Copy link
Contributor

The executable option is not respected during formatting.
Instead, the plugin falls back to calling ruff via its python module (python -m ruff).
If the module is not installed, this will fail and formatting does not work.

This PR adds the custom executable to the PluginSettings used for formatting.

@jhossbach
Copy link
Member

Good catch, thanks a lot for the PR!

@jhossbach jhossbach merged commit 7409cec into python-lsp:main Apr 27, 2024
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

Successfully merging this pull request may close these issues.

2 participants