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

Fix formatting with custom executable #90

Merged
merged 1 commit into from
Apr 27, 2024
Merged

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
5 checks passed
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.

None yet

2 participants