Fix pre-commit and linter versions to avoid surprise (#1100)

* Fix pre-commit and linter versions to avoid surprise

To avoid surprising results on GitHub Actions, e.g. a new release of pre-commit starts to
reject all PRs, fix it to the latest version, 3.7.0. This PR also fixes ruff and mypy
versions in pyproject.toml since we very likely don't really need latest upgrades from
linters, and upgrades can always bring surprise.

* pre-commit-config: Use v0.3.7 for Ruff as in pyproject.toml
This commit is contained in:
Boxuan Li 2024-04-14 12:33:58 -07:00 committed by GitHub
parent 033352e340
commit 652507f430
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 431 additions and 429 deletions

View File

@ -33,6 +33,6 @@ jobs:
with:
python-version: 3.11
- name: Install pre-commit
run: pip install pre-commit
run: pip install pre-commit==3.7.0
- name: Run pre-commit hooks
run: pre-commit run --files opendevin/**/* agenthub/**/* --show-diff-on-failure --config ./dev_config/python/.pre-commit-config.yaml

View File

@ -22,7 +22,7 @@ repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.3.5
rev: v0.3.7
hooks:
# Run the linter.
- id: ruff

850
poetry.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -34,9 +34,9 @@ llama-index-embeddings-azure-openai = "*"
llama-index-embeddings-ollama = "*"
[tool.poetry.group.dev.dependencies]
ruff = "*"
mypy = "*"
pre-commit = "*"
ruff = "0.3.7"
mypy = "1.9.0"
pre-commit = "3.7.0"
[tool.poetry.group.test.dependencies]
pytest = "*"