Skip to content
This repository has been archived by the owner on Dec 17, 2023. It is now read-only.

chore: apply code formatter black #152

Merged
merged 2 commits into from Oct 14, 2019
Merged

chore: apply code formatter black #152

merged 2 commits into from Oct 14, 2019

Conversation

busunkim96
Copy link
Contributor

@busunkim96 busunkim96 commented Oct 10, 2019

Formats the code using black.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Oct 10, 2019
Comment on lines -39 to 53
# session.run("black", "--check", *BLACK_PATHS)
session.run("black", "--check", *BLACK_PATHS)
session.run("flake8", "dialogflow", "dialogflow_v2", "dialogflow_v2beta1")


# @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_VERSION)
# session.run("black", *BLACK_PATHS)
@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_VERSION)
session.run("black", *BLACK_PATHS)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uncomments black

@busunkim96 busunkim96 merged commit 72cbc0c into master Oct 14, 2019
@busunkim96 busunkim96 deleted the blacken branch October 17, 2019 16:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants