From b05dedb579f2f97d05719ffdd01c03a0fd9500c7 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 30 Sep 2021 16:02:14 +0000 Subject: [PATCH] chore: fail samples nox session if python version is missing (#261) --- speech/microphone/noxfile.py | 4 ++++ speech/snippets/noxfile.py | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/speech/microphone/noxfile.py b/speech/microphone/noxfile.py index b008613f03ff..1fd8956fbf01 100644 --- a/speech/microphone/noxfile.py +++ b/speech/microphone/noxfile.py @@ -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 # diff --git a/speech/snippets/noxfile.py b/speech/snippets/noxfile.py index b008613f03ff..1fd8956fbf01 100644 --- a/speech/snippets/noxfile.py +++ b/speech/snippets/noxfile.py @@ -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 #