Skip to content

Commit

Permalink
chore: fail samples nox session if python version is missing (#241)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
4 people authored and dandhlee committed Nov 15, 2022
1 parent 9f7378d commit 3ca1d06
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vision/snippets/crop_hints/noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ def get_pytest_env_vars() -> Dict[str, str]:
"True",
"true",
)

# Error if a python version is missing
nox.options.error_on_missing_interpreters = True

#
# Style Checks
#
Expand Down
4 changes: 4 additions & 0 deletions vision/snippets/detect/noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ def get_pytest_env_vars() -> Dict[str, str]:
"True",
"true",
)

# Error if a python version is missing
nox.options.error_on_missing_interpreters = True

#
# Style Checks
#
Expand Down
4 changes: 4 additions & 0 deletions vision/snippets/document_text/noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ def get_pytest_env_vars() -> Dict[str, str]:
"True",
"true",
)

# Error if a python version is missing
nox.options.error_on_missing_interpreters = True

#
# Style Checks
#
Expand Down
4 changes: 4 additions & 0 deletions vision/snippets/face_detection/noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ def get_pytest_env_vars() -> Dict[str, str]:
"True",
"true",
)

# Error if a python version is missing
nox.options.error_on_missing_interpreters = True

#
# Style Checks
#
Expand Down
4 changes: 4 additions & 0 deletions vision/snippets/product_search/noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ def get_pytest_env_vars() -> Dict[str, str]:
"True",
"true",
)

# Error if a python version is missing
nox.options.error_on_missing_interpreters = True

#
# Style Checks
#
Expand Down
4 changes: 4 additions & 0 deletions vision/snippets/quickstart/noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ def get_pytest_env_vars() -> Dict[str, str]:
"True",
"true",
)

# Error if a python version is missing
nox.options.error_on_missing_interpreters = True

#
# Style Checks
#
Expand Down
4 changes: 4 additions & 0 deletions vision/snippets/web/noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ def get_pytest_env_vars() -> Dict[str, str]:
"True",
"true",
)

# Error if a python version is missing
nox.options.error_on_missing_interpreters = True

#
# Style Checks
#
Expand Down

0 comments on commit 3ca1d06

Please sign in to comment.