Skip to content

Commit c26b1a3

Browse files
authored
Add pre-commit (#58)
* ruff pre-commit * fix depencency placement
1 parent 11f46bb commit c26b1a3

File tree

3 files changed

+75
-0
lines changed

3 files changed

+75
-0
lines changed

.pre-commit-config.yaml

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

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ dev = [
4646
"ruff==0.12",
4747
"flask>=3.0.3,<4",
4848
"pyright>=1.1.383,<2",
49+
"pre-commit==4.5.0",
4950
]
5051
test = [
5152
"pytest>=7.4.2,<8",

uv.lock

Lines changed: 68 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)