Skip to content

Commit 2ed0010

Browse files
committed
Add urllib3 to mypy check
1 parent 58a8a96 commit 2ed0010

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

.pre-commit-config.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,15 @@ repos:
4040
- id: mypy
4141
args: [--config, ./mypy.ini]
4242
additional_dependencies:
43-
["numpy", "pytest", "requests", "types-requests", "types-tabulate"]
43+
[
44+
"numpy",
45+
"pytest",
46+
"requests",
47+
"urllib3",
48+
"types-requests",
49+
"types-tabulate",
50+
"types-urllib3",
51+
]
4452
# Unfortunately, `pre-commit` only runs on changed files
4553
# This doesn't work well with `mypy --follow-imports error`
4654
# See: https://github.com/pre-commit/mirrors-mypy/issues/34#issuecomment-1062160321

mypy.ini

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,3 @@ ignore_missing_imports = True
4141

4242
[mypy-tensorflow.*]
4343
ignore_missing_imports = True
44-
45-
[mypy-urllib3.*]
46-
ignore_missing_imports = True

0 commit comments

Comments
 (0)