agent/.pre-commit-config.yaml
jingrow 6e4a71e6c9
Some checks are pending
Agent Tests / Lint and Format (push) Waiting to run
Agent Tests / Unit Tests (push) Waiting to run
已适配jingrow
2025-05-14 14:37:30 +08:00

28 lines
659 B
YAML

exclude: 'node_modules|.git'
default_stages: [commit]
fail_fast: false
repos:
- repo: http://git.jingrow.com:3000/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: debug-statements
- id: trailing-whitespace
files: 'agent.*'
exclude: '.*json$|.*txt$|.*csv|.*md|.*svg'
- id: check-merge-conflict
- id: check-ast
- id: check-json
- id: check-toml
- id: check-yaml
- repo: http://git.jingrow.com:3000/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.6.5
hooks:
# Run the linter.
- id: ruff
args: [--fix]
# Run the formatter.
- id: ruff-format