You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.md
+15-5Lines changed: 15 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -214,8 +214,18 @@ Note: there is now an option to get Vietnam's braille standard as braille output
214
214
* Translations to Indonesian and Vietnamese
215
215
216
216
## Development Environment
217
-
We include here a few important notes for setting up a development environment for working on this project.
218
-
* The configuration in `.vscode/settings.json` assumes that a virtual environment has been set up in a directory named `.venv`.
219
-
This virtual environment should have `pyright` and `ruff` installed, and should use Python 3.11 (32-bit).
220
-
* The relative path `../NVDA/source` is included in the pyright configuration in `pyproject.toml` to enable typechecking functions from the main NVDA repository.
221
-
For this to function as expected, the main NVDA repository (https://github.com/nvaccess/nvda) should be cloned into the same directory as this repository.
217
+
How to set up your developer environment:
218
+
1. Install Python 3.11 (32-bit).
219
+
1. Set up your virtual environment.
220
+
*`python -m venv .venv`
221
+
1. Install python dependencies to `.venv`.
222
+
* Activate the virtual environment
223
+
`.venv\\Scripts\\activate`
224
+
* Install lint dependencies
225
+
`pip install .`
226
+
1. Import NVDA code.
227
+
* NVDA source code needs to be discoverable to get type hints, namespace resolution, code completion, and other IDE hints.
228
+
* The relative path `../nvda/source` is included in the pyright configuration in `pyproject.toml`.
229
+
* The [NVDA repository](https://github.com/nvaccess/nvda) should be cloned into the same parent directory.
230
+
i.e. as a sibling to this repository.
231
+
Alternatively, update `../nvda/source` in `pyproject.toml` to another location where the NVDA repository has been cloned.
0 commit comments