Skip to content

Commit ed7a12c

Browse files
abravalheriAvasam
andauthored
Simplify mypy.ini
According to review suggestion Co-authored-by: Avasam <[email protected]>
1 parent 0576d60 commit ed7a12c

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

mypy.ini

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,7 @@ ignore_missing_imports = True
3131

3232
# - pkg_resources tests create modules that won't exists statically before the test is run.
3333
# Let's ignore all "import-not-found" since, if an import really wasn't found, then the test would fail.
34-
# - setuptools._vendor.packaging._manylinux: Mypy issue, this vendored module is already excluded!
34+
# Even when excluding vendored/generated modules, there might be problems: https://github.com/python/mypy/issues/11936#issuecomment-1466764006
3535
[mypy-pkg_resources.tests.*,setuptools._vendor.packaging._manylinux,setuptools.config._validate_pyproject.*]
36-
disable_error_code = import-not-found
37-
38-
# - The unused-ignore comment in setuptools.config._validate_pyproject.* is probably evaluated differently
39-
# in different versions of Python. Also, this file should already be ignored...
40-
[mypy-setuptools.config._validate_pyproject.*]
41-
disable_error_code = unused-ignore
36+
follow_imports = silent
37+
# silent => ignore errors when following imports

0 commit comments

Comments
 (0)