We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ed3acdd commit 4562951Copy full SHA for 4562951
1 file changed
packages/google-cloud-spanner/noxfile.py
@@ -706,6 +706,26 @@ def mypy(session):
706
session.skip("mypy tests are not yet supported")
707
708
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
729
@nox.session(python=DEFAULT_PYTHON_VERSION)
730
def core_deps_from_source(session):
731
"""Run all tests with core dependencies installed from source
0 commit comments