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

Commit

Permalink
build: enable blacken session
Browse files Browse the repository at this point in the history
  • Loading branch information
busunkim96 committed Oct 11, 2019
1 parent 1c97c87 commit 082e5c3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 32 deletions.
24 changes: 3 additions & 21 deletions docs/conf.py
Expand Up @@ -258,13 +258,7 @@
# (source start file, target name, title,
# author, documentclass [howto, manual, or own class]).
latex_documents = [
(
master_doc,
"dialogflow.tex",
u"dialogflow Documentation",
author,
"manual",
)
(master_doc, "dialogflow.tex", u"dialogflow Documentation", author, "manual")
]

# The name of an image file (relative to this directory) to place at the top of
Expand Down Expand Up @@ -292,15 +286,7 @@

# One entry per manual page. List of tuples
# (source start file, name, description, authors, manual section).
man_pages = [
(
master_doc,
"dialogflow",
u"dialogflow Documentation",
[author],
1,
)
]
man_pages = [(master_doc, "dialogflow", u"dialogflow Documentation", [author], 1)]

# If true, show URL addresses after external links.
# man_show_urls = False
Expand Down Expand Up @@ -342,12 +328,8 @@
"gax": ("https://gax-python.readthedocs.org/en/latest/", None),
"google-auth": ("https://google-auth.readthedocs.io/en/stable", None),
"google-gax": ("https://gax-python.readthedocs.io/en/latest/", None),
"google.api_core": (
"https://googleapis.dev/python/google-api-core/latest",
None,
),
"google.api_core": ("https://googleapis.dev/python/google-api-core/latest", None),
"grpc": ("https://grpc.io/grpc/python/", None),

}


Expand Down
22 changes: 11 additions & 11 deletions noxfile.py
Expand Up @@ -36,20 +36,20 @@ def lint(session):
serious code quality issues.
"""
session.install("flake8", BLACK_VERSION)
# 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)


@nox.session(python="3.7")
Expand Down

0 comments on commit 082e5c3

Please sign in to comment.