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
* Fix possible unbound vars in background tasks
* Move class Config after fields
* Fix unbound vars in app.py
* Assert provisioning gateways have compute
* Assert region set for ssh instances
* Assert region service configurations
* Fix logging type annotations
* Fix redundant add_project_members line
* Fix Lockset annotations
* Assert configuration types in job configurators
* Fix unbound vars in process_running_jobs
* Check backend is not None
* Assert service and jpd in register_service
* Assert jpd in container_ssh_tunnel
* Assert jpd in ServerProxyRepo
* Fix configuration.model type annotation
* Assert conf.replicas
* Fix abstract AsyncGenerator def
* Fix ProbeConfig type annotations
* Fix max_duration and stop_duration type annotations
* Fix idle_duration type annotations
* Fix volumes and files type annotations
* Fix retry.duration type annotation
* Do not define Storage implementations when deps missing
* Fix gateway domain None
* Overload get_backend_config
* Do not define LogStorage implementations when deps missing
* Fix filelog typing
* Use async_sessionmaker
* Assert proxy_jump.ssh_key
* Ignore type errors from deps
* Forbid entrypoint for dev-environment
Fixes#3002
* Fix vscode and cursor __init__ annotations
* Pass probe_spec.body as content
* Assert gateway configuration.name
* Fix unbound next_token
* Cast path to str
* Fix unbound success var
* Fix typing
* Add pyright config
* Run pyright in CI
* Run pyright as part of tests
* Ignore type for entry_points
* Fix _detect_vscode_version
* Remove run_name assert
* Fix add_extra_schema_types for one $ref
* Replace ConfigurationWith extensions with mixins
* Fix unbound spec_json
* Remove huggingface api
* Type check plugins
* Fix BaseApplyConfigurator generics
* Type check core/services
* Fix services.gpus typing
* Document pyright in Contributing
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