2
0
Jelmer Vernooij 1 жил өмнө
parent
commit
968f181fe8
2 өөрчлөгдсөн 6 нэмэгдсэн , 4 устгасан
  1. 2 2
      dulwich/pack.py
  2. 4 2
      pyproject.toml

+ 2 - 2
dulwich/pack.py

@@ -2780,8 +2780,8 @@ def extend_pack(
 
 try:
     from dulwich._pack import (  # type: ignore
-        apply_delta,  # noqa: F811
-        bisect_find_sha,  # noqa: F811
+        apply_delta,  # type: ignore
+                               bisect_find_sha,  # type: ignore
     )
 except ImportError:
     pass

+ 4 - 2
pyproject.toml

@@ -69,7 +69,7 @@ license-files = ["COPYING"]
 [tool.setuptools.dynamic]
 version = {attr = "dulwich.__version__"}
 
-[tool.ruff]
+[tool.ruff.lint]
 select = [
     "ANN",
     "D",
@@ -105,7 +105,9 @@ ignore = [
     "E501",  # line too long
     "E741",  # ambiguous variable name
 ]
+
+[tool.ruff]
 target-version = "py37"
 
-[tool.ruff.pydocstyle]
+[tool.ruff.lint.pydocstyle]
 convention = "google"