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

3
## Build SGLang
4
5
6

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.
19
20
21
22

## For Newcomers
If you want to contribute or learn but don't have a concrete idea yet, you can pick a task labeled as "good first issue" or "help wanted" from the list below.
https://github.com/sgl-project/sglang/issues?q=is%3Aissue+label%3A%22good+first+issue%22%2C%22help+wanted%22