Skip to content

Commit 6ca837d

Browse files
chore: update templated files
1 parent eb57021 commit 6ca837d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

compute/compute/snippets/noxfile.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@
2828
# WARNING - WARNING - WARNING - WARNING - WARNING
2929
# WARNING - WARNING - WARNING - WARNING - WARNING
3030

31-
# Copy `noxfile_config.py` to your directory and modify it instead.
31+
BLACK_VERSION = "black==19.10b0"
3232

33+
# Copy `noxfile_config.py` to your directory and modify it instead.
3334

3435
# `TEST_CONFIG` dict is a configuration hook that allows users to
3536
# modify the test configurations. The values here should be in sync
@@ -48,8 +49,8 @@
4849
# to 'BUILD_SPECIFIC_GCLOUD_PROJECT' if you want to opt in using a
4950
# build specific Cloud project. You can also use your own string
5051
# to use your own Cloud project.
51-
# 'gcloud_project_env': 'GOOGLE_CLOUD_PROJECT',
52-
'gcloud_project_env': 'BUILD_SPECIFIC_GCLOUD_PROJECT',
52+
'gcloud_project_env': 'GOOGLE_CLOUD_PROJECT',
53+
# 'gcloud_project_env': 'BUILD_SPECIFIC_GCLOUD_PROJECT',
5354
# If you need to use a specific version of pip,
5455
# change pip_version_override to the string representation
5556
# of the version number, for example, "20.2.4"
@@ -159,7 +160,7 @@ def lint(session: nox.sessions.Session) -> None:
159160

160161
@nox.session
161162
def blacken(session: nox.sessions.Session) -> None:
162-
session.install("black")
163+
session.install(BLACK_VERSION)
163164
python_files = [path for path in os.listdir(".") if path.endswith(".py")]
164165

165166
session.run("black", *python_files)

0 commit comments

Comments
 (0)