Skip to content

Commit

Permalink
Default to use ruff as formatting for python multi language server
Browse files Browse the repository at this point in the history
  • Loading branch information
mumu-lhl committed Nov 2, 2023
1 parent 772cc4f commit 3735578
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion multiserver/jedi_ruff.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"find_references": "jedi",
"peek_find_definition": "jedi",
"peek_find_references": "jedi",
"formatting": "jedi",
"formatting": "ruff",
"hover": "jedi",
"signature_help": "jedi",
"prepare_rename": "jedi",
Expand Down
2 changes: 1 addition & 1 deletion multiserver/pylsp_ruff.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"find_references": "pylsp",
"peek_find_definition": "pylsp",
"peek_find_references": "pylsp",
"formatting": "pylsp",
"formatting": "ruff",
"hover": "pylsp",
"signature_help": "pylsp",
"prepare_rename": "pylsp",
Expand Down
2 changes: 1 addition & 1 deletion multiserver/pyright-background-analysis_ruff.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"find_references": "pyright-background-analysis",
"peek_find_definition": "pyright-background-analysis",
"peek_find_references": "pyright-background-analysis",
"formatting": "pyright-background-analysis",
"formatting": "ruff",
"hover": "pyright-background-analysis",
"signature_help": "pyright-background-analysis",
"prepare_rename": "pyright-background-analysis",
Expand Down
2 changes: 1 addition & 1 deletion multiserver/pyright_ruff.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"find_references": "pyright",
"peek_find_definition": "pyright",
"peek_find_references": "pyright",
"formatting": "pyright",
"formatting": "ruff",
"hover": "pyright",
"signature_help": "pyright",
"prepare_rename": "pyright",
Expand Down
2 changes: 1 addition & 1 deletion multiserver/python-ms_ruff.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"find_references": "python-ms",
"peek_find_definition": "python-ms",
"peek_find_references": "python-ms",
"formatting": "python-ms",
"formatting": "ruff",
"hover": "python-ms",
"signature_help": "python-ms",
"prepare_rename": "python-ms",
Expand Down

1 comment on commit 3735578

@manateelazycat
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mumu-lhl

lsp-bridge 以前的版本 formatting 协议不支持多服务器, 我今天晚上写了这个补丁 923d013

现在可以用 ruff 来快速格式化 Python 代码了。

Please sign in to comment.