mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-06 08:07:49 +00:00
32 lines
1006 B
TOML
32 lines
1006 B
TOML
id = "python"
|
|
name = "Python"
|
|
extensions = ["py", "pyi", "pyw"]
|
|
filenames = ["SConstruct", "SConscript"]
|
|
first-line = "^#!.*\\bpython[0-9.]*\\b"
|
|
line-comment = "#"
|
|
indent = { tab-size = 4, insert-spaces = true }
|
|
ui-mode = "Python"
|
|
tree-sitter = "python"
|
|
|
|
[[language-servers]]
|
|
name = "basedpyright"
|
|
command = "basedpyright-langserver"
|
|
args = ["--stdio"]
|
|
root-markers = ["pyproject.toml", "setup.py", "setup.cfg", "requirements.txt", "Pipfile", "pyrightconfig.json"]
|
|
install-hint = "pip install basedpyright (or: uv tool install basedpyright)"
|
|
|
|
[[language-servers]]
|
|
name = "pyright"
|
|
# Alternative: used only when the server above is not installed.
|
|
fallback = true
|
|
command = "pyright-langserver"
|
|
args = ["--stdio"]
|
|
root-markers = ["pyproject.toml", "setup.py", "setup.cfg", "requirements.txt", "Pipfile", "pyrightconfig.json"]
|
|
install-hint = "npm i -g pyright (or: pip install pyright)"
|
|
|
|
[debugger]
|
|
adapter = "debugpy"
|
|
command = "python3"
|
|
args = ["-m", "debugpy.adapter"]
|
|
install-hint = "pip install debugpy"
|