Skip to content

Commit 2a030e7

Browse files
committed
tests: add mypy nox session
1 parent d3e158f commit 2a030e7

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

packages/google-auth-oauthlib/noxfile.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -496,3 +496,20 @@ def prerelease_deps(session, protobuf_implementation):
496496
"PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION": protobuf_implementation,
497497
},
498498
)
499+
500+
501+
@nox.session(python=DEFAULT_PYTHON_VERSION)
502+
def mypy(session):
503+
"""Run the type checker."""
504+
session.install(
505+
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2410): Use the latest version of mypy
506+
"mypy<1.16.0",
507+
"types-requests-oauthlib",
508+
"types-click",
509+
)
510+
session.install(".")
511+
session.run(
512+
"mypy",
513+
"-p",
514+
"google_auth_oauthlib",
515+
)

0 commit comments

Comments
 (0)