添加 .pre-commit-config.yaml (这并不会启用hook)

This commit is contained in:
晴猫
2025-03-13 14:14:56 +09:00
committed by GitHub
parent 4baa95a125
commit c83fbc1529

10
.pre-commit-config.yaml Normal file
View File

@@ -0,0 +1,10 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.9.10
hooks:
# Run the linter.
- id: ruff
args: [ --fix ]
# Run the formatter.
- id: ruff-format