aa48145557
体检修复:启动日志不再打印 AUTH_TOKEN、密钥可清空、推送失败不占整段冷却、目录名与文案统一成 plugins/。
30 lines
782 B
YAML
30 lines
782 B
YAML
default_install_hook_types: [pre-commit, commit-msg]
|
|
repos:
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
rev: v0.17.3
|
|
hooks:
|
|
- id: ruff-check
|
|
args: [--fix]
|
|
- id: ruff-format
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v5.0.0
|
|
hooks:
|
|
- id: check-yaml
|
|
- id: check-merge-conflict
|
|
- id: detect-private-key
|
|
- id: check-added-large-files
|
|
args: [--maxkb=1024]
|
|
- repo: https://github.com/commitizen-tools/commitizen
|
|
rev: v4.19.3
|
|
hooks:
|
|
- id: commitizen
|
|
stages: [commit-msg]
|
|
- repo: local
|
|
hooks:
|
|
- id: web-typecheck
|
|
name: web typecheck
|
|
entry: pnpm --dir web typecheck
|
|
language: system
|
|
files: ^web/
|
|
pass_filenames: false
|