Skip to content

Commit 7409cec

Browse files
authored
Fix formatting with custom executable (#90)
1 parent a9af4a7 commit 7409cec

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pylsp_ruff/plugin.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,9 @@ def pylsp_format_document(workspace: Workspace, document: Document) -> Generator
137137
# enabled via the format config property. This allows for things like
138138
# specifying `format = ["I"]` to get import sorting as part of formatting.
139139
new_text = run_ruff(
140-
settings=PluginSettings(ignore=["ALL"], select=settings.format),
140+
settings=PluginSettings(
141+
ignore=["ALL"], select=settings.format, executable=settings.executable
142+
),
141143
document_path=document.path,
142144
document_source=new_text,
143145
fix=True,

0 commit comments

Comments
 (0)