Skip to content

misc: add pre-commit config#637

Merged
Ying1123 merged 1 commit intosgl-project:mainfrom
zhyncs:pre-commit
Jul 17, 2024
Merged

misc: add pre-commit config#637
Ying1123 merged 1 commit intosgl-project:mainfrom
zhyncs:pre-commit

Conversation

@zhyncs
Copy link
Copy Markdown
Collaborator

@zhyncs zhyncs commented Jul 17, 2024

motivation: automate the format

cc @merrymercy @Ying1123 @hnyls2002

ref https://github.com/sgl-project/sglang/blob/main/scripts/format.sh

pip3 install pre-commit
cd sglang
pre-commit install .
pre-commit run --all-files
isort....................................................................Passed
black....................................................................Passed

Copy link
Copy Markdown
Contributor

@Ying1123 Ying1123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@Ying1123 Ying1123 merged commit 2e341cd into sgl-project:main Jul 17, 2024
@hnyls2002
Copy link
Copy Markdown
Collaborator

@zhyncs This tool is amazing!

@zhyncs zhyncs deleted the pre-commit branch July 18, 2024 00:26
timethink pushed a commit to timethink/sglang that referenced this pull request Mar 9, 2025
cen121212 pushed a commit to cen121212/sglang that referenced this pull request Nov 10, 2025
<!-- Thank you for your contribution! Please follow these guidelines to
enhance your pull request. If anything is unclear, submit your PR and
reach out to maintainers for assistance. Join our Slack community at
https://slack.sglang.ai to discuss further. -->

## Motivation

<!-- Describe the purpose and goals of this pull request. -->

## Modifications

<!-- Detail the changes made in this pull request. -->

## Accuracy Tests

<!-- If this pull request affects model outputs (e.g., changes to the
kernel or model forward code), provide accuracy test results. -->

## Benchmarking and Profiling

<!-- If this pull request impacts inference speed, provide benchmarking
and profiling results. -->

## Checklist

- [ ] Format your code according to the [Format code with
pre-commit](https://docs.sglang.ai/developer_guide/contribution_guide.html#format-code-with-pre-commit).
- [ ] Add unit tests according to the [Run and add unit
tests](https://docs.sglang.ai/developer_guide/contribution_guide.html#run-and-add-unit-tests).
- [ ] Update documentation according to [Write
documentations](https://docs.sglang.ai/developer_guide/contribution_guide.html#write-documentations).
- [ ] Provide accuracy and speed benchmark results according to [Test
the
accuracy](https://docs.sglang.ai/developer_guide/contribution_guide.html#test-the-accuracy)
and [Benchmark the
speed](https://docs.sglang.ai/developer_guide/contribution_guide.html#benchmark-the-speed).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants