mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-10 04:09:37 +00:00
Document configuring pyright for pyproject.toml (#11508)
Release Notes: - N/A
This commit is contained in:
parent
d64106e01b
commit
953acb0f6d
1 changed files with 8 additions and 0 deletions
|
@ -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
|
### 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.
|
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.
|
||||||
|
|
Loading…
Reference in a new issue