Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: tweak mypy to check 'google.protobuf' #310

Merged
merged 1 commit into from Nov 18, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions google/__init__.py
Expand Up @@ -21,4 +21,5 @@
except ImportError:
import pkgutil

# See: https://github.com/python/mypy/issues/1422
__path__ = pkgutil.extend_path(__path__, __name__) # type: ignore
3 changes: 0 additions & 3 deletions mypy.ini
Expand Up @@ -2,6 +2,3 @@
python_version = 3.6
namespace_packages = True
ignore_missing_imports = True

[mypy-google.protobuf]
ignore_missing_imports = True
4 changes: 3 additions & 1 deletion noxfile.py
Expand Up @@ -170,7 +170,9 @@ def pytype(session):
def mypy(session):
"""Run type-checking."""
session.install(".[grpc, grpcgcp]", "mypy")
session.install("types-setuptools", "types-requests", "types-mock")
session.install(
"types-setuptools", "types-requests", "types-protobuf", "types-mock"
)
session.run("mypy", "google", "tests")


Expand Down