mirror of
https://github.com/mcp-use/mcp-use.git
synced 2026-09-14 18:06:01 +08:00
4a64d99fd7
Signed-off-by: Parship Chowdhury <parshipchowdhury@gmail.com>
31 lines
863 B
YAML
31 lines
863 B
YAML
repos:
|
|
# Python hooks - only run on Python files
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
rev: v0.3.2
|
|
hooks:
|
|
- id: ruff
|
|
args: [--fix, --exit-non-zero-on-fix]
|
|
files: ^libraries/python/.*\.py$
|
|
types: [python]
|
|
- id: ruff-format
|
|
files: ^libraries/python/.*\.py$
|
|
types: [python]
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v4.5.0
|
|
hooks:
|
|
- id: trailing-whitespace
|
|
files: ^libraries/python/
|
|
- id: end-of-file-fixer
|
|
files: ^libraries/python/
|
|
- id: check-yaml
|
|
exclude: (pnpm-lock\.yaml|package-lock\.json)$
|
|
- id: check-added-large-files
|
|
exclude: \.mp4$
|
|
- id: debug-statements
|
|
files: ^libraries/python/.*\.py$
|
|
|
|
# Define configuration for the Python checks
|
|
default_language_version:
|
|
python: python3
|