contributor_guide.md 470 Bytes
Newer Older
1
2
# Contributor Guide

3
4
5
6
# Build SGLang

See [Install SGLang, Method 2: From Source section](../start/install.md).

7
8
9
10
11
12
## Format Your Code
Use these commands to format your code and pass CI linting tests.

```
pip3 install pre-commit
cd sglang
Lianmin Zheng's avatar
Lianmin Zheng committed
13
pre-commit install
14
15
pre-commit run --all-files
```
Lianmin Zheng's avatar
Lianmin Zheng committed
16
17

## Add Unit Tests
Lianmin Zheng's avatar
Lianmin Zheng committed
18
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.