Skip to content

Commit

Permalink
Fix formatting with custom executable (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ultimator14 committed Apr 27, 2024
1 parent a9af4a7 commit 7409cec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pylsp_ruff/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,9 @@ 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 7409cec

Please sign in to comment.