Skip to content

Commit 48ed9a2

Browse files
committed
fix presubmit
1 parent 161bad3 commit 48ed9a2

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

noxfile.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363
# Error if a python version is missing
6464
nox.options.error_on_missing_interpreters = True
6565

66+
6667
@nox.session(python=DEFAULT_PYTHON_VERSION)
6768
def lint(session):
6869
session.install("flake8")
@@ -77,7 +78,7 @@ def lint(session):
7778
)
7879

7980

80-
@nox.session(python=DEFAULT_PYTHON_VERSION)
81+
@nox.session(python=["3.10", DEFAULT_PYTHON_VERSION])
8182
def format(session):
8283
"""
8384
Run isort to sort imports. Then run black

owlbot.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,7 @@
4646
# Copy configuration file for renovate
4747
s.move(templated_files / "renovate.json")
4848

49-
# ----------------------------------------------------------------------------
50-
# Samples templates
51-
# ----------------------------------------------------------------------------
52-
53-
python.py_samples(skip_readmes=True)
54-
49+
# Use a python runtime which is available in the owlbot post processor here
50+
# https://github.com/googleapis/synthtool/blob/master/docker/owlbot/python/Dockerfile
5551
for noxfile in Path(".").glob("**/noxfile.py"):
56-
s.shell.run(["nox", "-s", "format"], cwd=noxfile.parent, hide_output=False)
52+
s.shell.run(["nox", "-s", "format-3.10"], cwd=noxfile.parent, hide_output=False)

samples/compute/noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def blacken(session: nox.sessions.Session) -> None:
160160
#
161161

162162

163-
@nox.session
163+
@nox.session(python=["3.10"])
164164
def format(session: nox.sessions.Session) -> None:
165165
"""
166166
Run isort to sort imports. Then run black

0 commit comments

Comments
 (0)