Skip to content

Commit 4562951

Browse files
chalmerloweparthea
authored andcommitted
chore: updates mypy session
1 parent ed3acdd commit 4562951

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

packages/google-cloud-spanner/noxfile.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -706,6 +706,26 @@ def mypy(session):
706706
session.skip("mypy tests are not yet supported")
707707

708708

709+
@nox.session(python=ALL_PYTHON)
710+
def mypy(session):
711+
"""Run the type checker."""
712+
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2579):
713+
# use the latest version of mypy
714+
session.install(
715+
"mypy<1.16.0",
716+
"types-requests",
717+
"types-protobuf",
718+
)
719+
session.install(".")
720+
session.run(
721+
"mypy",
722+
"-p",
723+
"google",
724+
"--check-untyped-defs",
725+
*session.posargs,
726+
)
727+
728+
709729
@nox.session(python=DEFAULT_PYTHON_VERSION)
710730
def core_deps_from_source(session):
711731
"""Run all tests with core dependencies installed from source

0 commit comments

Comments
 (0)