Skip to content

Commit 5e4dec5

Browse files
committed
tests: add mypy
1 parent 55dfe67 commit 5e4dec5

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

packages/google-cloud-dns/noxfile.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,23 @@ def format(session):
138138
)
139139

140140

141+
@nox.session(python=DEFAULT_PYTHON_VERSION)
142+
def mypy(session):
143+
"""Run the type checker."""
144+
session.install(
145+
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2410): Use the latest version of mypy
146+
"mypy<1.16.0",
147+
"types-requests",
148+
"types-protobuf",
149+
)
150+
session.install(".")
151+
session.run(
152+
"mypy",
153+
"-p",
154+
"google",
155+
)
156+
157+
141158
@nox.session(python=DEFAULT_PYTHON_VERSION)
142159
def lint_setup_py(session):
143160
"""Verify that setup.py is valid (including RST check)."""

0 commit comments

Comments
 (0)