Skip to content

Commit eda422b

Browse files
authored
build(python): fail nox sessions if a python version is missing (#982)
Nox's default behavior is to quietly skip if a python interpreter is missing. https://nox.thea.codes/en/stable/usage.html#failing-sessions-when-the-interpreter-is-missing
1 parent 94686b0 commit eda422b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

synthtool/gcp/templates/python_library/noxfile.py.j2

+4
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ nox.options.sessions = [
4141
"docs",
4242
]
4343

44+
# Error if a python version is missing
45+
nox.options.error_on_missing_interpreters = True
46+
47+
4448
@nox.session(python=DEFAULT_PYTHON_VERSION)
4549
def lint(session):
4650
"""Run linters.

0 commit comments

Comments
 (0)