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

pull/334/head
晴猫 2025-03-13 14:14:56 +09:00 committed by GitHub
parent 4baa95a125
commit c83fbc1529
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 10 additions and 0 deletions

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