Skip to content

Commit

Permalink
build(python): fail nox sessions if a python version is missing (#52)
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 authored Mar 17, 2021
1 parent dde2df7 commit dcf4584
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-connection/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-connection/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-connection.git",
"sha": "e74d245a884284260cde06e368ee9f1eb9dd8362"
"sha": "7d21625cccba6add681a9918a87ce81063c74778"
}
},
{
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 dcf4584

Please sign in to comment.