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: contributing/DEVELOPMENT.md
+16-2Lines changed: 16 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,12 +25,26 @@ uv sync --all-extras
25
25
26
26
Alternatively, if you want to manage virtual environments by yourself, you can install `dstack` into the activated virtual environment with `uv sync --all-extras --active`.
27
27
28
-
## 4. (Recommended) Install pre-commits:
28
+
## 4. (Recommended) Install pre-commit hooks:
29
+
30
+
Code formatting and linting can be done automatically on each commit with `pre-commit` hooks:
29
31
30
32
```shell
31
33
uv run pre-commit install
32
34
```
33
35
34
-
## 5. Frontend
36
+
## 5. (Recommended) Use pyright:
37
+
38
+
The CI runs `pyright` for type checking `dstack` Python code.
39
+
So we recommend you configure your IDE to use `pyright`/`pylance` with `standard` type checking mode.
40
+
41
+
You can also install `pyright` and run it from the CLI:
42
+
43
+
```shell
44
+
uv tool install pyright
45
+
pyright -p .
46
+
```
47
+
48
+
## 6. Frontend
35
49
36
50
See [FRONTEND.md](FRONTEND.md) for the details on how to build and develop the frontend.
0 commit comments