Files
bisheng/.pre-commit-config.yaml
LineWalker c71f9a45dd ci: setup 2.5.0-PM branch CI/CD for team collaboration
- Update feat_cicd pipeline: fix uv mirrors config (align with cicd pipeline),
  add SSH deploy step to 114 server, trigger on 2.5.0-PM branch
- Add failure notification to Feishu webhook
- Modernize pre-commit hooks: replace flake8/yapf/isort with ruff
- Add .editorconfig for cross-IDE consistency
- Add PR template for collaboration workflow

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-10 18:34:38 +08:00

27 lines
754 B
YAML

exclude: ^(scripts|docs|docker|requirements|test|experimental)/
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
files: \.(py|pyd|ts|tsx|js|jsx)$
- id: check-yaml
- id: end-of-file-fixer
files: \.(py|pyd|ts|tsx|js|jsx)$
- id: check-merge-conflict
- id: check-added-large-files
args: ["--maxkb=500"]
- id: mixed-line-ending
args: ["--fix=lf"]
files: \.(py|pyd|ts|tsx|js|jsx)$
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.8
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
types_or: [python, pyi]
- id: ruff-format
types_or: [python, pyi]