Skip to content

Commit

Permalink
ci: tweak mypy to check 'google.protobuf' (#310)
Browse files Browse the repository at this point in the history
Install the 'types-protobuf' package in support.
  • Loading branch information
tseaver committed Nov 18, 2021
1 parent 4b40789 commit bc0abe4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
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

0 comments on commit bc0abe4

Please sign in to comment.