2024-08-08 03:58:47 -07:00
# Contributor Guide
2024-12-08 01:06:15 -08:00
# Build SGLang
See [Install SGLang, Method 2: From Source section ](../start/install.md ).
2024-08-08 03:58:47 -07:00
## Format Your Code
Use these commands to format your code and pass CI linting tests.
```
pip3 install pre-commit
cd sglang
2024-08-10 15:09:03 -07:00
pre-commit install
2024-08-08 03:58:47 -07:00
pre-commit run --all-files
```
2024-08-10 15:09:03 -07:00
## Add Unit Tests
2024-10-26 04:32:36 -07:00
Add unit tests under [sglang/test ](https://github.com/sgl-project/sglang/tree/main/test ). You can learn how to add and run tests from the README.md in that folder.