Skip to content

Commit 0b44e20

Browse files
committed
chore: update linting
1 parent a5229a8 commit 0b44e20

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

packages/google-cloud-spanner/noxfile.py

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -607,16 +607,24 @@ def prerelease_deps(session, protobuf_implementation, database_dialect):
607607
if os.environ.get("GOOGLE_APPLICATION_CREDENTIALS"):
608608
run_system = True
609609
else:
610-
session.log("Skipping system tests because GOOGLE_APPLICATION_CREDENTIALS is not set")
610+
session.log(
611+
"Skipping system tests because GOOGLE_APPLICATION_CREDENTIALS is not set"
612+
)
611613
run_system = False
612614
else:
613615
# Skip to speed up build (only run python implementation on real Spanner)
614-
session.log(f"Skipping system tests for protobuf={protobuf_implementation} on real Spanner to speed up build")
616+
session.log(
617+
f"Skipping system tests for protobuf={protobuf_implementation} on real Spanner to speed up build"
618+
)
615619
run_system = False
616620

617621
if run_system:
618622
# Run the tests (deduplicated logic)
619-
test_path = system_test_path if os.path.exists(system_test_path) else system_test_folder_path
623+
test_path = (
624+
system_test_path
625+
if os.path.exists(system_test_path)
626+
else system_test_folder_path
627+
)
620628
session.run(
621629
"py.test",
622630
"--verbose",
@@ -630,13 +638,15 @@ def prerelease_deps(session, protobuf_implementation, database_dialect):
630638
},
631639
)
632640

641+
633642
@nox.session(python=DEFAULT_PYTHON_VERSION)
634643
def mypy(session):
635644
"""Run the type checker."""
636645
# TODO(https://github.com/googleapis/google-cloud-python/issues/16014):
637646
# Add mypy tests
638647
session.skip("mypy tests are not yet supported")
639648

649+
640650
@nox.session(python=DEFAULT_PYTHON_VERSION)
641651
def core_deps_from_source(session):
642652
"""Run all tests with core dependencies installed from source

0 commit comments

Comments
 (0)