Răsfoiți Sursa

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 an în urmă
părinte
comite
652507f430
4 a modificat fișierele cu 370 adăugiri și 379 ștergeri
  1. 1 1
      .github/workflows/lint.yml
  2. 1 1
      dev_config/python/.pre-commit-config.yaml
  3. 365 374
      poetry.lock
  4. 3 3
      pyproject.toml

+ 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

Fișier diff suprimat deoarece este prea mare
+ 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 = "*"

Unele fișiere nu au fost afișate deoarece prea multe fișiere au fost modificate în acest diff