Files
Liger-Kernel/.pre-commit-config.yaml
T
Tcc0403andShao Tang 559e9a1efc Add pre-commit config (#1009)
## Summary
<!--- This is a required section; please describe the main purpose of
this proposed code change. --->
This PR adds pre-commit config, [`prek`](https://prek.j178.dev/)
dependency and instructions in `CONTRIBUTING.md`.



<!---
## Details
This is an optional section; is there anything specific that reviewers
should be aware of?
--->

## Testing Done
<!--- This is a required section; please describe how this change was
tested. --->

<!-- 
Replace BLANK with your device type. For example, A100-80G-PCIe

Complete the following tasks before sending your PR, and replace `[ ]`
with
`[x]` to indicate you have done them. 
-->

- Hardware Type: <BLANK>
- [ ] run `make test` to ensure correctness
- [ ] run `make checkstyle` to ensure code style
- [ ] run `make test-convergence` to ensure convergence

---------

Signed-off-by: Tcc0403 <[email protected]>
Co-authored-by: Shao Tang <[email protected]>
2026-01-17 16:46:11 -08:00

11 lines
215 B
YAML

repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.14.11
hooks:
# Run the linter.
- id: ruff-check
args: [ --fix ]
# Run the formatter.
- id: ruff-format