Skip to content

Commit 6cfba7a

Browse files
committed
Link to issues in mypy.ini for non py.typed dependencies
1 parent 0588af0 commit 6cfba7a

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

mypy.ini

+15-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
@@ -31,10 +34,14 @@ disable_error_code = attr-defined
3134
disable_error_code = import-not-found
3235

3336
# - distutils._modified has different errors on Python 3.8 [import-untyped], on Python 3.9+ [import-not-found]
34-
# - All jaraco modules are still untyped
35-
# - _validate_project sometimes complains about trove_classifiers (#4296)
36-
# - wheel appears to be untyped
37-
[mypy-distutils._modified,jaraco.*,trove_classifiers,wheel.*]
37+
# - The following are not marked as py.typed:
38+
# - jaraco.envs: https://github.com/jaraco/jaraco.envs/issues/7
39+
# - jaraco.packaging: https://github.com/jaraco/jaraco.packaging/issues/20
40+
# - jaraco.path: https://github.com/jaraco/jaraco.path/issues/2
41+
# - jaraco.test: https://github.com/jaraco/jaraco.test/issues/7
42+
# - jaraco.text: https://github.com/jaraco/jaraco.text/issues/17
43+
# - wheel: does not intend on exposing a programatic API https://github.com/pypa/wheel/pull/610#issuecomment-2081687671
44+
[mypy-distutils._modified,jaraco.envs,jaraco.packaging.*,jaraco.path,jaraco.test.*,jaraco.text,wheel.*]
3845
ignore_missing_imports = True
3946

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

0 commit comments

Comments
 (0)