|
@@ -20,16 +20,16 @@ repos:
|
|
|
|
|
|
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
|
# Ruff version.
|
|
# Ruff version.
|
|
|
- rev: v0.3.7
|
|
|
|
|
|
|
+ rev: v0.4.1
|
|
|
hooks:
|
|
hooks:
|
|
|
# Run the linter.
|
|
# Run the linter.
|
|
|
- id: ruff
|
|
- id: ruff
|
|
|
- entry: ruff check --config dev_config/python/ruff.toml opendevin/ agenthub/
|
|
|
|
|
|
|
+ entry: ruff check --config dev_config/python/ruff.toml
|
|
|
types_or: [python, pyi, jupyter]
|
|
types_or: [python, pyi, jupyter]
|
|
|
args: [--fix]
|
|
args: [--fix]
|
|
|
# Run the formatter.
|
|
# Run the formatter.
|
|
|
- id: ruff-format
|
|
- id: ruff-format
|
|
|
- entry: ruff check --config dev_config/python/ruff.toml opendevin/ agenthub/
|
|
|
|
|
|
|
+ entry: ruff format --config dev_config/python/ruff.toml
|
|
|
types_or: [python, pyi, jupyter]
|
|
types_or: [python, pyi, jupyter]
|
|
|
|
|
|
|
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
|
- repo: https://github.com/pre-commit/mirrors-mypy
|