Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Document configuring pyright for pyproject.toml (#11508)

Joseph T. Lyons953acb0f6def
diff --git a/docs/src/languages/python.md b/docs/src/languages/python.md
index 0f1f7c823f9..4f3ff2be2cf 100644
--- a/docs/src/languages/python.md
+++ b/docs/src/languages/python.md
@@ -38,6 +38,14 @@ Having done that, you would create a `pyrightconfig.json` with the following con
}
```
+If you prefer to use a `pyproject.toml` file, you can add the following section:
+
+```toml
+[tool.pyright]
+venvPath = "."
+venv = ".venv"
+```
+
### Code formatting
The Pyright language server does not provide code formatting. If you want to automatically reformat your Python code when saving, you'll need to specify an \_external_code formatter in your settings. See the [configuration](../configuring_zed.md) documentation for more information.