Skip to content

Commit 420f471

Browse files
committed
chore: add pre-commit config
1 parent 252de02 commit 420f471

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

.pre-commit-config.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
default_install_hook_types: [pre-commit]
2+
ci:
3+
autofix_prs: true
4+
autofix_commit_msg: "chore: auto fix by pre-commit hooks"
5+
autoupdate_branch: master
6+
autoupdate_schedule: monthly
7+
autoupdate_commit_msg: "chore: auto update pre-commit hooks"
8+
repos:
9+
- repo: https://github.com/fllesser/ruff-rev-sync-pre-commit
10+
rev: v1.0.0
11+
hooks:
12+
- id: ruff-rev-sync
13+
14+
- repo: https://github.com/astral-sh/ruff-pre-commit
15+
rev: v0.15.2
16+
hooks:
17+
- id: ruff-check
18+
args: [--fix, --exit-non-zero-on-fix]
19+
- id: ruff-format
20+
21+
- repo: https://github.com/astral-sh/uv-pre-commit
22+
rev: 0.9.28
23+
hooks:
24+
- id: uv-lock
25+
- id: uv-sync
26+
stages: [pre-commit, post-checkout]

0 commit comments

Comments
 (0)