Skip to content

Commit

Permalink
Fix formatting with custom executable
Browse files Browse the repository at this point in the history
  • Loading branch information
Ultimator14 committed Apr 27, 2024
1 parent a9af4a7 commit 12a7246
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pylsp_ruff/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def pylsp_format_document(workspace: Workspace, document: Document) -> Generator
# enabled via the format config property. This allows for things like
# specifying `format = ["I"]` to get import sorting as part of formatting.
new_text = run_ruff(
settings=PluginSettings(ignore=["ALL"], select=settings.format),
settings=PluginSettings(ignore=["ALL"], select=settings.format, executable=settings.executable),
document_path=document.path,
document_source=new_text,
fix=True,
Expand Down

0 comments on commit 12a7246

Please sign in to comment.