Skip to content
This repository was archived by the owner on Mar 6, 2026. It is now read-only.

Commit a587de4

Browse files
authored
chore: use specific version for black (#247)
1 parent fa9f9ca commit a587de4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

noxfile.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import nox
2121

2222

23+
BLACK_VERSION = "black==19.10b0"
2324
BLACK_PATHS = ("docs", "google", "samples", "tests", "noxfile.py", "setup.py")
2425

2526

@@ -147,7 +148,7 @@ def lint(session):
147148
serious code quality issues.
148149
"""
149150

150-
session.install("black", "flake8")
151+
session.install("flake8", BLACK_VERSION)
151152
session.install("-e", ".")
152153
session.run("flake8", os.path.join("google", "cloud", "bigquery"))
153154
session.run("flake8", "tests")
@@ -173,7 +174,7 @@ def blacken(session):
173174
That run uses an image that doesn't have 3.6 installed. Before updating this
174175
check the state of the `gcp_ubuntu_config` we use for that Kokoro run.
175176
"""
176-
session.install("black")
177+
session.install(BLACK_VERSION)
177178
session.run("black", *BLACK_PATHS)
178179

179180

0 commit comments

Comments
 (0)