Skip to content

Commit

Permalink
chore(bigquery): use 3.6 for blacken session (#10012)
Browse files Browse the repository at this point in the history
* [CHANGE ME] Re-generated bigquery to pick up changes in the API or client library generator.

* chore: use 3.6 for blacken session

* chore: blacken

* chore: add comment about why 3.6 is used

* chore: revert changes to metadata

Co-authored-by: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com>
  • Loading branch information
2 people authored and tswast committed Jan 8, 2020
1 parent 21e4ff3 commit efd2e53
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bigquery/noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,14 @@ def lint_setup_py(session):
session.run("python", "setup.py", "check", "--restructuredtext", "--strict")


@nox.session(python="3.7")
@nox.session(python="3.6")
def blacken(session):
"""Run black.
Format code to uniform standard.
This currently uses Python 3.6 due to the automated Kokoro run of synthtool.
That run uses an image that doesn't have 3.6 installed. Before updating this
check the state of the `gcp_ubuntu_config` we use for that Kokoro run.
"""
session.install("black")
session.run("black", *BLACK_PATHS)
Expand Down

0 comments on commit efd2e53

Please sign in to comment.