@@ -499,10 +499,11 @@ replacements:
499499 count : 1
500500 - paths :
501501 - " packages/google-cloud-pubsub/noxfile.py"
502- before : ' @nox\.session\(python=ALL_PYTHON\)\ndef mypy\(session\):[\s\S]+?(?=\n @nox\.session\ndef update_lower_bounds\(session\):)'
502+ before : ' @nox\.session\(python=ALL_PYTHON\)\ndef mypy\(session\):[\s\S]+?\n( @nox\.session\ndef update_lower_bounds\(session\):)'
503503 after : |-
504504 MYPY_VERSION = "mypy==1.10.0"
505505
506+
506507 @nox.session(python=DEFAULT_PYTHON_VERSION)
507508 def mypy(session):
508509 """Run type checks with mypy."""
@@ -512,7 +513,9 @@ replacements:
512513 # Version 2.1.1 of google-api-core version is the first type-checked release.
513514 # Version 2.2.0 of google-cloud-core version is the first type-checked release.
514515 session.install(
515- "google-api-core[grpc]>=2.1.1", "google-cloud-core>=2.2.0", "types-requests"
516+ "google-api-core[grpc]>=2.1.1",
517+ "google-cloud-core>=2.2.0",
518+ "types-requests",
516519 )
517520
518521 # Just install the type info directly, since "mypy --install-types" might
@@ -540,7 +543,10 @@ replacements:
540543 # Just install the type info directly, since "mypy --install-types" might
541544 # require an additional pass.
542545 session.install(
543- "types-mock", "types-protobuf", "types-setuptools", "types-requests"
546+ "types-mock",
547+ "types-protobuf",
548+ "types-setuptools",
549+ "types-requests",
544550 )
545551
546552 session.run(
@@ -551,6 +557,8 @@ replacements:
551557 "samples/",
552558 )
553559
560+
561+ \g<1>
554562 count : 1
555563 - paths :
556564 - " packages/google-cloud-pubsub/noxfile.py"
@@ -568,9 +576,7 @@ replacements:
568576 before : ' def core_deps_from_source\(session, protobuf_implementation\):[\s\S]+?PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION": protobuf_implementation,\n[ \t]+},\n[ \t]+\)'
569577 after : |-
570578 def core_deps_from_source(session, protobuf_implementation):
571- """
572- Skipping until Pub/Sub migration is complete.
573- """
579+ """Skipping until Pub/Sub migration is complete."""
574580 session.skip("Skipping core_deps_from_source for google-cloud-pubsub.")
575581 count : 1
576582 - paths :
0 commit comments