Browse Source

Pin ruff. Fixes #1314

Jelmer Vernooij 10 months ago
parent
commit
cf54b9dbf2
2 changed files with 4 additions and 1 deletions
  1. 1 1
      .github/workflows/pythontest.yml
  2. 3 0
      pyproject.toml

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

@@ -37,7 +37,7 @@ jobs:
         if: "matrix.os != 'windows-latest' && matrix.python-version != 'pypy3'"
       - name: Style checks
         run: |
-          pip install --upgrade ruff
+          pip install ".[dev]"
           python -m ruff check .
           python -m ruff format --check .
       - name: Typing checks

+ 3 - 0
pyproject.toml

@@ -41,6 +41,9 @@ fastimport = ["fastimport"]
 https = ["urllib3>=1.24.1"]
 pgp = ["gpg"]
 paramiko = ["paramiko"]
+dev = [
+    "ruff==0.4.4"
+]
 
 [project.scripts]
 dulwich = "dulwich.cli:main"