Skip to content

Commit 6ca5532

Browse files
committed
add pre-commit
1 parent a68e519 commit 6ca5532

3 files changed

Lines changed: 126 additions & 1 deletion

File tree

.pre-commit-config.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
repos:
2+
- repo: https://github.com/astral-sh/ruff-pre-commit
3+
# Ruff version.
4+
rev: v0.11.4
5+
hooks:
6+
- id: ruff # just check the code, and print the errors
7+
- id: ruff # actually fix the fixable errors, but print nothing
8+
args: ["--fix", "--silent"]
9+
# Run the formatter.
10+
- id: ruff-format

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ dependencies = [
1212

1313
[dependency-groups]
1414
dev = [
15+
"pre-commit>=4.2.0",
1516
"ruff>=0.11.12",
1617
]
1718

uv.lock

Lines changed: 115 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)