2024-08-08 03:58:47 -07:00
|
|
|
# Contributor Guide
|
|
|
|
|
|
|
|
|
|
## 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
|
|
|
|
|
Add unit tests under [sglang/test](../../test). You can learn how to add and run tests from the README.md in that folder.
|