Skip to content

Commit 1f1148d

Browse files
authored
chore: add blacken to template (#842)
1 parent 2c8aece commit 1f1148d

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

synthtool/gcp/templates/python_samples/noxfile.py.j2

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,16 @@ def lint(session):
148148
"."
149149
]
150150
session.run("flake8", *args)
151+
#
152+
# Black
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")]
151159

160+
session.run("black", *python_files)
152161

153162
#
154163
# Sample Tests

0 commit comments

Comments
 (0)