Skip to content

Commit

Permalink
chore: add blacken to template (#842)
Browse files Browse the repository at this point in the history
  • Loading branch information
leahecole committed Nov 5, 2020
1 parent 2c8aece commit 1f1148d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions synthtool/gcp/templates/python_samples/noxfile.py.j2
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,16 @@ def lint(session):
"."
]
session.run("flake8", *args)
#
# Black
#

@nox.session
def blacken(session):
session.install("black")
python_files = [path for path in os.listdir(".") if path.endswith(".py")]

session.run("black", *python_files)

#
# Sample Tests
Expand Down

0 comments on commit 1f1148d

Please sign in to comment.