@@ -13,30 +13,21 @@ exclude = (?x)(
13
13
| ^setuptools/_distutils/ # Vendored
14
14
| ^setuptools/config/_validate_pyproject/ # Auto-generated
15
15
)
16
- disable_error_code =
17
- # TODO: Test environment is not yet properly configured to install all imported packages
18
- # import-not-found, # This can be left commented out for local runs until we enforce running mypy in the CI
19
- # TODO: Not all dependencies are typed. Namely: distutils._modified, wheel.wheelfile, and jaraco.*
20
- import-untyped,
21
- # Ignoring attr-defined because setuptools wraps a lot of distutils classes, adding new attributes,
22
- # w/o updating all the attributes and return types from the base classes for type-checkers to understand
23
- # Especially with setuptools.dist.command vs distutils.dist.command vs setuptools._distutils.dist.command
24
- # *.extern modules that actually live in *._vendor will also cause attr-defined issues on import
25
- attr-defined,
16
+ # Ignoring attr-defined because setuptools wraps a lot of distutils classes, adding new attributes,
17
+ # w/o updating all the attributes and return types from the base classes for type-checkers to understand
18
+ # Especially with setuptools.dist.command vs distutils.dist.command vs setuptools._distutils.dist.command
19
+ # *.extern modules that actually live in *._vendor will also cause attr-defined issues on import
20
+ disable_error_code = attr-defined
26
21
27
- # Avoid raising issues when importing from "extern" modules, as those are added to path dynamically.
28
- # https://github.com/pypa/setuptools/pull/3979#discussion_r1367968993
29
- [mypy-pkg_resources.extern.*,setuptools.extern.*]
22
+ # - Avoid raising issues when importing from "extern" modules, as those are added to path dynamically.
23
+ # https://github.com/pypa/setuptools/pull/3979#discussion_r1367968993
24
+ # - distutils._modified has different errors on Python 3.8 [import-untyped], on Python 3.9+ [import-not-found]
25
+ # - All jaraco modules are still untyped
26
+ [mypy-pkg_resources.extern.*,setuptools.extern.*,distutils._modified,jaraco.*]
30
27
ignore_missing_imports = True
31
28
32
- [mypy-pkg_resources.tests.*,setuptools.tests.*]
33
- disable_error_code =
34
- # Tests include creating dynamic modules that won't exists statically before the test is run.
35
- # Let's ignore all "import-not-found", as if an import really wasn't found, then the test would fail.
36
- import-not-found,
37
- # mmany untyped "jaraco" modules
38
- import-untyped,
39
-
40
- # Mypy issue, this vendored module is already excluded!
41
- [mypy-setuptools._vendor.packaging._manylinux]
29
+ # - pkg_resources tests create modules that won't exists statically before the test is run.
30
+ # Let's ignore all "import-not-found" since, if an import really wasn't found, then the test would fail.
31
+ # - setuptools._vendor.packaging._manylinux: Mypy issue, this vendored module is already excluded!
32
+ [mypy-pkg_resources.tests.*,setuptools._vendor.packaging._manylinux]
42
33
disable_error_code = import-not-found
0 commit comments