Skip to content

Commit

Permalink
Simplify mypy.ini
Browse files Browse the repository at this point in the history
According to review suggestion

Co-authored-by: Avasam <samuel.06@hotmail.com>
  • Loading branch information
abravalheri and Avasam committed May 9, 2024
1 parent 0576d60 commit ed7a12c
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions mypy.ini
Expand Up @@ -31,11 +31,7 @@ ignore_missing_imports = True

# - pkg_resources tests create modules that won't exists statically before the test is run.
# Let's ignore all "import-not-found" since, if an import really wasn't found, then the test would fail.
# - setuptools._vendor.packaging._manylinux: Mypy issue, this vendored module is already excluded!
# Even when excluding vendored/generated modules, there might be problems: https://github.com/python/mypy/issues/11936#issuecomment-1466764006
[mypy-pkg_resources.tests.*,setuptools._vendor.packaging._manylinux,setuptools.config._validate_pyproject.*]
disable_error_code = import-not-found

# - The unused-ignore comment in setuptools.config._validate_pyproject.* is probably evaluated differently
# in different versions of Python. Also, this file should already be ignored...
[mypy-setuptools.config._validate_pyproject.*]
disable_error_code = unused-ignore
follow_imports = silent
# silent => ignore errors when following imports

0 comments on commit ed7a12c

Please sign in to comment.