Skip to content

Commit c4e4f4d

Browse files
chore: add blacken to template (#96)
Source-Author: Leah E. Cole <[email protected]> Source-Date: Thu Nov 5 15:22:03 2020 -0800 Source-Repo: googleapis/synthtool Source-Sha: 1f1148d3c7a7a52f0c98077f976bd9b3c948ee2b Source-Link: googleapis/synthtool@1f1148d Co-authored-by: Tim Swast <[email protected]>
1 parent 49c8a0f commit c4e4f4d

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

bigquery_storage/quickstart/noxfile.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,19 @@ def lint(session):
147147
session.run("flake8", *args)
148148

149149

150+
#
151+
# Black
152+
#
153+
154+
155+
@nox.session
156+
def blacken(session):
157+
session.install("black")
158+
python_files = [path for path in os.listdir(".") if path.endswith(".py")]
159+
160+
session.run("black", *python_files)
161+
162+
150163
#
151164
# Sample Tests
152165
#

bigquery_storage/to_dataframe/noxfile.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,19 @@ def lint(session):
147147
session.run("flake8", *args)
148148

149149

150+
#
151+
# Black
152+
#
153+
154+
155+
@nox.session
156+
def blacken(session):
157+
session.install("black")
158+
python_files = [path for path in os.listdir(".") if path.endswith(".py")]
159+
160+
session.run("black", *python_files)
161+
162+
150163
#
151164
# Sample Tests
152165
#

0 commit comments

Comments
 (0)