Add urllib3 to mypy check

This commit is contained in:
Ayaz Salikhov
2023-10-04 17:08:41 +04:00
parent 58a8a965c8
commit 2ed0010238
2 changed files with 9 additions and 4 deletions

View File

@@ -40,7 +40,15 @@ repos:
- id: mypy
args: [--config, ./mypy.ini]
additional_dependencies:
["numpy", "pytest", "requests", "types-requests", "types-tabulate"]
[
"numpy",
"pytest",
"requests",
"urllib3",
"types-requests",
"types-tabulate",
"types-urllib3",
]
# Unfortunately, `pre-commit` only runs on changed files
# This doesn't work well with `mypy --follow-imports error`
# See: https://github.com/pre-commit/mirrors-mypy/issues/34#issuecomment-1062160321

View File

@@ -41,6 +41,3 @@ ignore_missing_imports = True
[mypy-tensorflow.*]
ignore_missing_imports = True
[mypy-urllib3.*]
ignore_missing_imports = True