Commit fb359b8
chore: 添加 pre-commit hook 配置
- 添加 .pre-commit-config.yaml 配置文件
- 添加 pre-commit 到 dev 依赖组
- 配置 ruff --fix 和 ruff-format 在提交前自动运行
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 27d9c56 commit fb359b8
3 files changed
Lines changed: 80 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
143 | 148 | | |
144 | 149 | | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments