Skip to content

Commit 789149c

Browse files
gcf-owl-bot[bot]gcf-merge-on-green[bot]parthea
authored
chore: fail samples nox session if python version is missing (#241)
Source-Link: googleapis/synthtool@59dce5b Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:82b12321da4446a73cb11bcb6812fbec8c105abda3946d46e6394e5fbfb64c0f Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: gcf-merge-on-green[bot] <60162190+gcf-merge-on-green[bot]@users.noreply.github.com> Co-authored-by: Anthonios Partheniou <partheniou@google.com>
1 parent e94c871 commit 789149c

File tree

7 files changed

+28
-0
lines changed

7 files changed

+28
-0
lines changed

vision/snippets/crop_hints/noxfile.py

+4
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@ def get_pytest_env_vars() -> Dict[str, str]:
9898
"True",
9999
"true",
100100
)
101+
102+
# Error if a python version is missing
103+
nox.options.error_on_missing_interpreters = True
104+
101105
#
102106
# Style Checks
103107
#

vision/snippets/detect/noxfile.py

+4
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@ def get_pytest_env_vars() -> Dict[str, str]:
9898
"True",
9999
"true",
100100
)
101+
102+
# Error if a python version is missing
103+
nox.options.error_on_missing_interpreters = True
104+
101105
#
102106
# Style Checks
103107
#

vision/snippets/document_text/noxfile.py

+4
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@ def get_pytest_env_vars() -> Dict[str, str]:
9898
"True",
9999
"true",
100100
)
101+
102+
# Error if a python version is missing
103+
nox.options.error_on_missing_interpreters = True
104+
101105
#
102106
# Style Checks
103107
#

vision/snippets/face_detection/noxfile.py

+4
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@ def get_pytest_env_vars() -> Dict[str, str]:
9898
"True",
9999
"true",
100100
)
101+
102+
# Error if a python version is missing
103+
nox.options.error_on_missing_interpreters = True
104+
101105
#
102106
# Style Checks
103107
#

vision/snippets/product_search/noxfile.py

+4
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@ def get_pytest_env_vars() -> Dict[str, str]:
9898
"True",
9999
"true",
100100
)
101+
102+
# Error if a python version is missing
103+
nox.options.error_on_missing_interpreters = True
104+
101105
#
102106
# Style Checks
103107
#

vision/snippets/quickstart/noxfile.py

+4
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@ def get_pytest_env_vars() -> Dict[str, str]:
9898
"True",
9999
"true",
100100
)
101+
102+
# Error if a python version is missing
103+
nox.options.error_on_missing_interpreters = True
104+
101105
#
102106
# Style Checks
103107
#

vision/snippets/web/noxfile.py

+4
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@ def get_pytest_env_vars() -> Dict[str, str]:
9898
"True",
9999
"true",
100100
)
101+
102+
# Error if a python version is missing
103+
nox.options.error_on_missing_interpreters = True
104+
101105
#
102106
# Style Checks
103107
#

0 commit comments

Comments
 (0)