Prechádzať zdrojové kódy

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
Boxuan Li 1 rok pred
rodič
commit
652507f430

+ 1 - 1
.github/workflows/lint.yml

@@ -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

+ 1 - 1
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

Rozdielové dáta súboru neboli zobrazené, pretože súbor je príliš veľký
+ 365 - 374
poetry.lock


+ 3 - 3
pyproject.toml

@@ -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 = "*"

Niektoré súbory nie sú zobrazené, pretože je v týchto rozdielových dátach zmenené mnoho súborov