mirror of
https://github.com/dataelement/bisheng.git
synced 2026-08-28 17:14:44 +08:00
c71f9a45dd
- 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>
27 lines
754 B
YAML
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]
|