Skip to content
This repository was archived by the owner on Sep 5, 2023. It is now read-only.

Commit ad10eca

Browse files
build(python): fail nox sessions if a python version is missing
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 Source-Author: Bu Sun Kim <[email protected]> Source-Date: Tue Mar 16 13:38:02 2021 -0600 Source-Repo: googleapis/synthtool Source-Sha: eda422b90c3dde4a872a13e6b78a8f802c40d0db Source-Link: googleapis/synthtool@eda422b
1 parent 03ea3b6 commit ad10eca

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

noxfile.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@
4141
"docs",
4242
]
4343

44+
# Error if a python version is missing
45+
nox.options.error_on_missing_interpreters = True
46+
4447

4548
@nox.session(python=DEFAULT_PYTHON_VERSION)
4649
def lint(session):

synth.metadata

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@
1919
"git": {
2020
"name": "synthtool",
2121
"remote": "https://github.com/googleapis/synthtool.git",
22-
"sha": "2c54c473779ea731128cea61a3a6c975a08a5378"
22+
"sha": "eda422b90c3dde4a872a13e6b78a8f802c40d0db"
2323
}
2424
},
2525
{
2626
"git": {
2727
"name": "synthtool",
2828
"remote": "https://github.com/googleapis/synthtool.git",
29-
"sha": "2c54c473779ea731128cea61a3a6c975a08a5378"
29+
"sha": "eda422b90c3dde4a872a13e6b78a8f802c40d0db"
3030
}
3131
}
3232
],

0 commit comments

Comments
 (0)