Skip to content

Commit 9f6e8f5

Browse files
authored
tests: skip mypy for packages without py.typed (googleapis#15565)
See follow up issue googleapis#13362
1 parent 0e4866e commit 9f6e8f5

File tree

4 files changed

+36
-0
lines changed

4 files changed

+36
-0
lines changed

packages/google-cloud-access-context-manager/noxfile.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,15 @@ def format(session):
142142
)
143143

144144

145+
@nox.session(python=DEFAULT_PYTHON_VERSION)
146+
def mypy(session):
147+
"""Run the type checker."""
148+
149+
# TODO(https://github.com/googleapis/google-cloud-python/issues/13362):
150+
# Enable mypy once this bug is fixed.
151+
session.skip("Skip mypy since this library doesn't have py.typed")
152+
153+
145154
@nox.session(python=DEFAULT_PYTHON_VERSION)
146155
def lint_setup_py(session):
147156
"""Verify that setup.py is valid (including RST check)."""

packages/google-cloud-audit-log/noxfile.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,15 @@ def format(session):
142142
)
143143

144144

145+
@nox.session(python=DEFAULT_PYTHON_VERSION)
146+
def mypy(session):
147+
"""Run the type checker."""
148+
149+
# TODO(https://github.com/googleapis/google-cloud-python/issues/13362):
150+
# Enable mypy once this bug is fixed.
151+
session.skip("Skip mypy since this library doesn't have py.typed")
152+
153+
145154
@nox.session(python=DEFAULT_PYTHON_VERSION)
146155
def lint_setup_py(session):
147156
"""Verify that setup.py is valid (including RST check)."""

packages/googleapis-common-protos/noxfile.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,15 @@ def format(session):
142142
)
143143

144144

145+
@nox.session(python=DEFAULT_PYTHON_VERSION)
146+
def mypy(session):
147+
"""Run the type checker."""
148+
149+
# TODO(https://github.com/googleapis/google-cloud-python/issues/13362):
150+
# Enable mypy once this bug is fixed.
151+
session.skip("Skip mypy since this library doesn't have py.typed")
152+
153+
145154
@nox.session(python=DEFAULT_PYTHON_VERSION)
146155
def lint_setup_py(session):
147156
"""Verify that setup.py is valid (including RST check)."""

packages/grpc-google-iam-v1/noxfile.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,15 @@ def format(session):
142142
)
143143

144144

145+
@nox.session(python=DEFAULT_PYTHON_VERSION)
146+
def mypy(session):
147+
"""Run the type checker."""
148+
149+
# TODO(https://github.com/googleapis/google-cloud-python/issues/13362):
150+
# Enable mypy once this bug is fixed.
151+
session.skip("Skip mypy since this library doesn't have py.typed")
152+
153+
145154
@nox.session(python=DEFAULT_PYTHON_VERSION)
146155
def lint_setup_py(session):
147156
"""Verify that setup.py is valid (including RST check)."""

0 commit comments

Comments
 (0)