mirror of
https://github.com/agentuniverse-ai/agentUniverse.git
synced 2026-02-08 17:49:20 +08:00
27 lines
655 B
YAML
27 lines
655 B
YAML
repos:
|
|
# Basic file checks
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v4.5.0
|
|
hooks:
|
|
- id: trailing-whitespace
|
|
- id: end-of-file-fixer
|
|
- id: check-yaml
|
|
- id: check-added-large-files
|
|
- id: check-merge-conflict
|
|
- id: debug-statements
|
|
|
|
# Python code formatting
|
|
- repo: https://github.com/psf/black
|
|
rev: 24.10.0
|
|
hooks:
|
|
- id: black
|
|
args: [--line-length=120]
|
|
|
|
# Python linting with ruff (simplified)
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
rev: v0.8.4
|
|
hooks:
|
|
- id: ruff
|
|
args: [--fix, --exit-non-zero-on-fix]
|
|
- id: ruff-format
|