Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Link to issues in mypy.ini for non py.typed dependencies
Browse files Browse the repository at this point in the history
Avasam committed Aug 12, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 7aa30d0 commit 4a4fac2
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions mypy.ini
Original file line number Diff line number Diff line change
@@ -8,13 +8,16 @@ warn_redundant_casts = True
# required to support namespace packages: https://github.com/python/mypy/issues/14057
explicit_package_bases = True
exclude = (?x)(
# Avoid scanning .py files in generated folders
^build/
| ^.tox/
| ^.eggs/
| ^pkg_resources/tests/data/my-test-package-source/setup.py$ # Duplicate module name
| ^setuptools/_vendor/ # Vendored
| ^setuptools/_distutils/ # Vendored
| ^setuptools/config/_validate_pyproject/ # Auto-generated
| ^setuptools/config/_validate_pyproject/
# These are vendored
| ^setuptools/_vendor/
| ^setuptools/_distutils/
# Duplicate module name
| ^pkg_resources/tests/data/my-test-package-source/setup.py$
)
# Too many false-positives
disable_error_code = overload-overlap
@@ -31,10 +34,14 @@ disable_error_code = attr-defined
disable_error_code = import-not-found

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

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

0 comments on commit 4a4fac2

Please sign in to comment.