Skip to content

Commit 4c6fc2d

Browse files
authored
fix: fail nox session if python version is missing (GoogleCloudPlatform#6764)
* fix: fail nox session if python version is missing * chore: modify spacing
1 parent 4c42710 commit 4c6fc2d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

noxfile-template.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,10 @@ def get_pytest_env_vars() -> Dict[str, str]:
9797
TESTED_VERSIONS = sorted([v for v in ALL_VERSIONS if v not in IGNORED_VERSIONS])
9898

9999
INSTALL_LIBRARY_FROM_SOURCE = bool(os.environ.get("INSTALL_LIBRARY_FROM_SOURCE", False))
100+
101+
# Error if a python version is missing
102+
nox.options.error_on_missing_interpreters = True
103+
100104
#
101105
# Style Checks
102106
#

0 commit comments

Comments
 (0)