This PR adjusts the heading levels in the docs, as some of them weren't following the right hierarchy. I also formatted all of the docs with Prettier. Release Notes: - N/A
Showing the changes to docs/src/languages/python.md (1 of 14 files). Show all
Unified · Split
| @@ -17,8 +17,8 @@ By default, the Pyright language server will look for Python packages in the def · 16 unmodified lines | |||
| 17 | 17 | ||
| 18 | To do this, create a JSON file called `pyrightconfig.json` at the root of your project. This file must include two keys: | 18 | To do this, create a JSON file called `pyrightconfig.json` at the root of your project. This file must include two keys: |
| 19 | 19 | ||
| 20 | * `venvPath`: a relative path from your project directory to any directory that _contains_ one or more virtual environment directories | 20 | - `venvPath`: a relative path from your project directory to any directory that _contains_ one or more virtual environment directories |
| 21 | * `venv`: the name of a virtual environment directory | 21 | - `venv`: the name of a virtual environment directory |
| 22 | 22 | ||
| 23 | For example, a common approach is to create a virtual environment directory called `.venv` at the root of your project directory with the following commands: | 23 | For example, a common approach is to create a virtual environment directory called `.venv` at the root of your project directory with the following commands: |
| 24 | 24 | ||
| @@ -40,7 +40,7 @@ Having done that, you would create a `pyrightconfig.json` with the following con · 15 unmodified lines | |||
| 40 | 40 | ||
| 41 | ### Code formatting | 41 | ### Code formatting |
| 42 | 42 | ||
| 43 | 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](../configuration/configuring-zed.md) documentation for more information. | 43 | 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](../configuration/configuring-zed.md) documentation for more information. |
| 44 | 44 | ||
| 45 | A common tool for formatting python code is [Black](https://black.readthedocs.io/en/stable/). If you have Black installed globally, you can use it to format Python files by adding the following to your `settings.json`: | 45 | A common tool for formatting python code is [Black](https://black.readthedocs.io/en/stable/). If you have Black installed globally, you can use it to format Python files by adding the following to your `settings.json`: |
| 46 | 46 | ||