summaryrefslogtreecommitdiff
path: root/setup.cfg
diff options
context:
space:
mode:
authorTzu-ping Chung <uranusjr@gmail.com>2021-03-10 11:53:19 +0800
committerTzu-ping Chung <uranusjr@gmail.com>2021-03-10 13:06:21 +0800
commit4807de8e73bcd8052506ac0eff870d9575175b6d (patch)
tree2760d6527b3b22f026aa3ebdb91dab5992abe546 /setup.cfg
parent9624d0d529243354bda9820f0cc12257cbdf47f0 (diff)
downloadpip-4807de8e73bcd8052506ac0eff870d9575175b6d.tar.gz
Set follow_imports = silent
Diffstat (limited to 'setup.cfg')
-rw-r--r--setup.cfg18
1 files changed, 16 insertions, 2 deletions
diff --git a/setup.cfg b/setup.cfg
index 1d851d949..f78cfece7 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -31,15 +31,29 @@ per-file-ignores =
tests/*: B011
[mypy]
+follow_imports = silent
ignore_missing_imports = True
disallow_untyped_defs = True
disallow_any_generics = True
warn_unused_ignores = True
-[mypy-pip/_vendor/*]
-follow_imports = skip
+[mypy-pip._vendor.*]
ignore_errors = True
+# These vendored libraries use runtime magic to populate things and don't sit
+# well with static typing out of the box. Eventually we should provide correct
+# typing information for their public interface and remove these configs.
+[mypy-pip._vendor.colorama]
+follow_imports = skip
+[mypy-pip._vendor.pkg_resources]
+follow_imports = skip
+[mypy-pip._vendor.progress.*]
+follow_imports = skip
+[mypy-pip._vendor.requests.*]
+follow_imports = skip
+[mypy-pip._vendor.retrying]
+follow_imports = skip
+
[tool:pytest]
addopts = --ignore src/pip/_vendor --ignore tests/tests_cache -r aR
markers =