contributor_guide.md 379 Bytes
Newer Older
1
2
3
4
5
6
7
8
# Contributor Guide

## 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
9
pre-commit install
10
11
pre-commit run --all-files
```
Lianmin Zheng's avatar
Lianmin Zheng committed
12
13

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