mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 05:48:36 +08:00
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:
parent
033352e340
commit
652507f430
2
.github/workflows/lint.yml
vendored
2
.github/workflows/lint.yml
vendored
@ -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
|
||||
|
||||
@ -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
850
poetry.lock
generated
File diff suppressed because it is too large
Load Diff
@ -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 = "*"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user