mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 05:48:36 +08:00
40 lines
1.0 KiB
YAML
40 lines
1.0 KiB
YAML
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v3.2.0
|
|
hooks:
|
|
- id: trailing-whitespace
|
|
- id: end-of-file-fixer
|
|
- id: check-yaml
|
|
- id: debug-statements
|
|
- id: double-quote-string-fixer
|
|
- id: requirements-txt-fixer
|
|
|
|
- repo: https://github.com/hhatto/autopep8
|
|
rev: v2.1.0
|
|
hooks:
|
|
- id: autopep8
|
|
|
|
- repo: https://github.com/asottile/setup-cfg-fmt
|
|
rev: v2.5.0
|
|
hooks:
|
|
- id: setup-cfg-fmt
|
|
always_run: true
|
|
pass_filenames: false
|
|
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
rev: v0.3.3
|
|
hooks:
|
|
- id: ruff
|
|
entry: ruff check --config dev_config/python/ruff.toml opendevin/ agenthub/
|
|
always_run: true
|
|
pass_filenames: false
|
|
|
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
|
rev: v1.9.0
|
|
hooks:
|
|
- id: mypy
|
|
additional_dependencies: [types-requests, types-setuptools]
|
|
entry: mypy --config-file dev_config/python/mypy.ini opendevin/ agenthub/
|
|
always_run: true
|
|
pass_filenames: false
|