Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/.OwlBot.lock.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
# limitations under the License.
docker:
image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest
digest: sha256:5581906b957284864632cde4e9c51d1cc66b0094990b27e689132fe5cd036046
# created: 2025-03-05
digest: sha256:21c50ac6b72047705ceac7b3c84dca11f771f40b5cdfd8931bf1f446a89274e5
# created: 2025-04-14T15:05:23.836138399Z
14 changes: 14 additions & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@

FLAKE8_VERSION = "flake8==6.1.0"
PYTYPE_VERSION = "pytype==2021.09.09"
PYTYPE_VERSION = "pytype==2021.09.09"
BLACK_VERSION = "black[jupyter]==23.7.0"
ISORT_VERSION = "isort==5.11.0"
LINT_PATHS = ["docs", "google", "tests", "noxfile.py", "setup.py"]
Expand Down Expand Up @@ -66,6 +67,7 @@
nox.options.sessions = [
"unit",
"pytype", # Custom pytype session
"pytype", # Custom pytype session
"system",
"cover",
"lint",
Expand Down Expand Up @@ -335,6 +337,18 @@ def pytype(session):
session.run("pytype", "-P", ".", "google/cloud/pubsublite")


@nox.session(python=DEFAULT_PYTHON_VERSION)
def pytype(session):
"""Run type checks."""
constraints_path = str(
CURRENT_DIRECTORY / "testing" / f"constraints-{session.python}.txt"
)
install_unittest_dependencies(session, "-c", constraints_path)
session.install(PYTYPE_VERSION)
# See https://github.com/google/pytype/issues/464
session.run("pytype", "-P", ".", "google/cloud/pubsublite")


@nox.session(python="3.10")
def docfx(session):
"""Build the docfx yaml files for this library."""
Expand Down