diff --git a/pyproject.toml b/pyproject.toml index 19c37ded1..9df541149 100644 --- a/pyproject.toml +++ b/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 diff --git a/setup.cfg b/setup.cfg index 112dfb714..3f8c92a0f 100644 --- a/setup.cfg +++ b/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