Skip to content

Commit 63d55b7

Browse files
authored
Link to issues in mypy.ini for non py.typed dependencies (#4561)
1 parent c11cc27 commit 63d55b7

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

mypy.ini

+16-8
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,16 @@ warn_redundant_casts = True
88
# required to support namespace packages: https://github.com/python/mypy/issues/14057
99
explicit_package_bases = True
1010
exclude = (?x)(
11+
# Avoid scanning Python files in generated folders
1112
^build/
1213
| ^.tox/
1314
| ^.eggs/
14-
| ^pkg_resources/tests/data/my-test-package-source/setup.py$ # Duplicate module name
15-
| ^setuptools/_vendor/ # Vendored
16-
| ^setuptools/_distutils/ # Vendored
17-
| ^setuptools/config/_validate_pyproject/ # Auto-generated
15+
| ^setuptools/config/_validate_pyproject/
16+
# These are vendored
17+
| ^setuptools/_vendor/
18+
| ^setuptools/_distutils/
19+
# Duplicate module name
20+
| ^pkg_resources/tests/data/my-test-package-source/setup.py$
1821
)
1922
# Too many false-positives
2023
disable_error_code = overload-overlap
@@ -35,10 +38,15 @@ disable_error_code = import-not-found
3538
# - support for `SETUPTOOLS_USE_DISTUTILS=stdlib` is dropped (#3625)
3639
# for setuptools to import `_distutils` directly
3740
# - or non-stdlib distutils typings are exposed
38-
# - All jaraco modules are still untyped
39-
# - _validate_project sometimes complains about trove_classifiers (#4296)
40-
# - wheel appears to be untyped
41-
[mypy-distutils.*,jaraco.*,trove_classifiers,wheel.*]
41+
# - The following are not marked as py.typed:
42+
# - jaraco.develop: https://github.com/jaraco/jaraco.develop/issues/22
43+
# - jaraco.envs: https://github.com/jaraco/jaraco.envs/issues/7
44+
# - jaraco.packaging: https://github.com/jaraco/jaraco.packaging/issues/20
45+
# - jaraco.path: https://github.com/jaraco/jaraco.path/issues/2
46+
# - jaraco.test: https://github.com/jaraco/jaraco.test/issues/7
47+
# - jaraco.text: https://github.com/jaraco/jaraco.text/issues/17
48+
# - wheel: does not intend on exposing a programatic API https://github.com/pypa/wheel/pull/610#issuecomment-2081687671
49+
[mypy-distutils.*,jaraco.develop,jaraco.envs,jaraco.packaging.*,jaraco.path,jaraco.test.*,jaraco.text,wheel.*]
4250
ignore_missing_imports = True
4351

4452
# Even when excluding a module, import issues can show up due to following import

0 commit comments

Comments
 (0)