Skip to content

Commit

Permalink
build(python): fail nox sessions if a python version is missing (#87)
Browse files Browse the repository at this point in the history
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 <8822365+busunkim96@users.noreply.github.com>
Source-Date: Tue Mar 16 13:38:02 2021 -0600
Source-Repo: googleapis/synthtool
Source-Sha: eda422b90c3dde4a872a13e6b78a8f802c40d0db
Source-Link: googleapis/synthtool@eda422b
  • Loading branch information
yoshi-automation committed Mar 17, 2021
1 parent 61a6823 commit 713651e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions packages/google-cloud-bigquery-reservation/noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@
"docs",
]

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


@nox.session(python=DEFAULT_PYTHON_VERSION)
def lint(session):
Expand Down
6 changes: 3 additions & 3 deletions packages/google-cloud-bigquery-reservation/synth.metadata
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/python-bigquery-reservation.git",
"sha": "a1ec7d2563f57b22bd1e8e36e1a934711f4f6916"
"sha": "f8730357abf1e6820bbabda09fe0309bd7df2732"
}
},
{
Expand All @@ -19,14 +19,14 @@
"git": {
"name": "synthtool",
"remote": "https://github.com/googleapis/synthtool.git",
"sha": "2c54c473779ea731128cea61a3a6c975a08a5378"
"sha": "eda422b90c3dde4a872a13e6b78a8f802c40d0db"
}
},
{
"git": {
"name": "synthtool",
"remote": "https://github.com/googleapis/synthtool.git",
"sha": "2c54c473779ea731128cea61a3a6c975a08a5378"
"sha": "eda422b90c3dde4a872a13e6b78a8f802c40d0db"
}
}
],
Expand Down

0 comments on commit 713651e

Please sign in to comment.