This commit is contained in:
tamakyi
2026-09-11 17:49:34 +08:00
commit 102bb070bb
967 changed files with 5152 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0 # 选择最新的稳定版本
hooks:
- id: trailing-whitespace # 去除多余的空格
- id: end-of-file-fixer # 确保文件以空行结束
- id: check-yaml # 检查 YAML 文件格式
- id: check-added-large-files # 检查提交中是否包含过大的文件
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.13.1
hooks:
# Run the linter.
- id: ruff
args: [ --fix ]
# Run the formatter.
- id: ruff-format