Skip to content

Commit 990f5a9

Browse files
committed
feat: enable mypy session for ndb
1 parent ef62df4 commit 990f5a9

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

packages/google-cloud-ndb/noxfile.py

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -453,10 +453,20 @@ def core_deps_from_source(session):
453453
@nox.session(python=DEFAULT_INTERPRETER)
454454
def mypy(session):
455455
"""Run the type checker."""
456-
457-
# TODO(https://github.com/googleapis/google-cloud-python/issues/16014):
458-
# Enable mypy once this bug is fixed.
459-
session.skip("Temporarily skip mypy. See issue 16014")
456+
session.install(
457+
"mypy<1.16.0",
458+
"types-requests",
459+
"types-protobuf",
460+
)
461+
session.install("-e", ".")
462+
session.run(
463+
"mypy",
464+
"-p",
465+
"google.cloud.ndb",
466+
"--check-untyped-defs",
467+
"--ignore-missing-imports",
468+
*session.posargs,
469+
)
460470

461471

462472
@nox.session(python=DEFAULT_INTERPRETER)

0 commit comments

Comments
 (0)