Skip to content

Commit 18c8e61

Browse files
chalmerloweparthea
authored andcommitted
chore: update linting
1 parent 9e7df59 commit 18c8e61

1 file changed

Lines changed: 13 additions & 3 deletions

File tree

packages/google-cloud-spanner/noxfile.py

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -654,16 +654,24 @@ def prerelease_deps(session, protobuf_implementation, database_dialect):
654654
if os.environ.get("GOOGLE_APPLICATION_CREDENTIALS"):
655655
run_system = True
656656
else:
657-
session.log("Skipping system tests because GOOGLE_APPLICATION_CREDENTIALS is not set")
657+
session.log(
658+
"Skipping system tests because GOOGLE_APPLICATION_CREDENTIALS is not set"
659+
)
658660
run_system = False
659661
else:
660662
# Skip to speed up build (only run python implementation on real Spanner)
661-
session.log(f"Skipping system tests for protobuf={protobuf_implementation} on real Spanner to speed up build")
663+
session.log(
664+
f"Skipping system tests for protobuf={protobuf_implementation} on real Spanner to speed up build"
665+
)
662666
run_system = False
663667

664668
if run_system:
665669
# Run the tests (deduplicated logic)
666-
test_path = system_test_path if os.path.exists(system_test_path) else system_test_folder_path
670+
test_path = (
671+
system_test_path
672+
if os.path.exists(system_test_path)
673+
else system_test_folder_path
674+
)
667675
session.run(
668676
"py.test",
669677
"--verbose",
@@ -677,13 +685,15 @@ def prerelease_deps(session, protobuf_implementation, database_dialect):
677685
},
678686
)
679687

688+
680689
@nox.session(python=DEFAULT_PYTHON_VERSION)
681690
def mypy(session):
682691
"""Run the type checker."""
683692
# TODO(https://github.com/googleapis/google-cloud-python/issues/16014):
684693
# Add mypy tests
685694
session.skip("mypy tests are not yet supported")
686695

696+
687697
@nox.session(python=DEFAULT_PYTHON_VERSION)
688698
def core_deps_from_source(session):
689699
"""Run all tests with core dependencies installed from source

0 commit comments

Comments
 (0)