|
28 | 28 | # WARNING - WARNING - WARNING - WARNING - WARNING
|
29 | 29 | # WARNING - WARNING - WARNING - WARNING - WARNING
|
30 | 30 |
|
31 |
| -# Copy `noxfile_config.py` to your directory and modify it instead. |
| 31 | +BLACK_VERSION = "black==19.10b0" |
32 | 32 |
|
| 33 | +# Copy `noxfile_config.py` to your directory and modify it instead. |
33 | 34 |
|
34 | 35 | # `TEST_CONFIG` dict is a configuration hook that allows users to
|
35 | 36 | # modify the test configurations. The values here should be in sync
|
|
48 | 49 | # to 'BUILD_SPECIFIC_GCLOUD_PROJECT' if you want to opt in using a
|
49 | 50 | # build specific Cloud project. You can also use your own string
|
50 | 51 | # 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', |
53 | 54 | # If you need to use a specific version of pip,
|
54 | 55 | # change pip_version_override to the string representation
|
55 | 56 | # of the version number, for example, "20.2.4"
|
@@ -159,7 +160,7 @@ def lint(session: nox.sessions.Session) -> None:
|
159 | 160 |
|
160 | 161 | @nox.session
|
161 | 162 | def blacken(session: nox.sessions.Session) -> None:
|
162 |
| - session.install("black") |
| 163 | + session.install(BLACK_VERSION) |
163 | 164 | python_files = [path for path in os.listdir(".") if path.endswith(".py")]
|
164 | 165 |
|
165 | 166 | session.run("black", *python_files)
|
|
0 commit comments