This commit is contained in:
lmflash
2026-04-22 11:25:55 +08:00
commit 1506b28da6
15 changed files with 5606 additions and 0 deletions

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

@@ -0,0 +1,24 @@
exclude: "^assets|^test/"
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.11.11
hooks:
- id: ruff-check
args: [--fix]
- id: ruff-format
- repo: https://github.com/asottile/pyupgrade
rev: v3.20.0
hooks:
- id: pyupgrade
args: [--py312-plus]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: check-added-large-files
- id: check-toml
- id: check-yaml
exclude: "^helm/"
args: [--unsafe]
- id: check-merge-conflict