Jelajahi Sumber

pyproject.toml: move mypy options

Thomas Waldmann 1 tahun lalu
induk
melakukan
a91b7d2787
2 mengubah file dengan 18 tambahan dan 21 penghapusan
  1. 18 0
      pyproject.toml
  2. 0 21
      setup.cfg

+ 18 - 0
pyproject.toml

@@ -73,3 +73,21 @@ python_files = "testsuite/*.py"
 markers = [
     "allow_cache_wipe",
 ]
+
+[tool.mypy]
+python_version = "3.9"
+strict_optional = false
+local_partial_types = true
+show_error_codes = true
+files = "src/borg/**/*.py"
+
+[[tool.mypy.overrides]]
+module = [
+    "msgpack.*",
+    "llfuse",
+    "pyfuse3",
+    "trio",
+    "borg.crypto.low_level",
+    "borg.platform.*",
+]
+ignore_missing_imports = true

+ 0 - 21
setup.cfg

@@ -68,24 +68,3 @@ console_scripts =
 llfuse = llfuse >= 1.3.8
 pyfuse3 = pyfuse3 >= 3.1.1
 nofuse =
-
-[mypy]
-python_version = 3.9
-strict_optional = False
-local_partial_types = True
-show_error_codes = True
-files = src/borg/**/*.py
-
-[mypy-msgpack.*]
-ignore_missing_imports = True
-[mypy-llfuse]
-ignore_missing_imports = True
-[mypy-pyfuse3]
-ignore_missing_imports = True
-[mypy-trio]
-ignore_missing_imports = True
-
-[mypy-borg.crypto.low_level]
-ignore_missing_imports = True
-[mypy-borg.platform.*]
-ignore_missing_imports = True