Skip to content

Commit 72b8720

Browse files
authored
Add precommit hooks (#82)
1 parent 87300a1 commit 72b8720

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,6 @@ CLAUDE.md
88
venv/
99
ops/
1010
uv.lock
11+
12+
# Pre-commit
13+
.pre-commit-cache/

.pre-commit-config.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
repos:
2+
- repo: https://github.com/astral-sh/ruff-pre-commit
3+
rev: v0.12.1
4+
hooks:
5+
- id: ruff
6+
args: [--fix]
7+
- id: ruff-format

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ dev-dependencies = [
4747
"pytest-mock",
4848
"pytest-timeout",
4949
"ruff==0.12.1",
50+
"pre-commit",
5051
"torch",
5152
"numpy",
5253
# cupy-cuda12x is platform specific, install manually if needed

0 commit comments

Comments
 (0)