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

Commit

Permalink
chore: add blacken to template
Browse files Browse the repository at this point in the history
Source-Author: Leah E. Cole <6719667+leahecole@users.noreply.github.com>
Source-Date: Thu Nov 5 15:22:03 2020 -0800
Source-Repo: googleapis/synthtool
Source-Sha: 1f1148d3c7a7a52f0c98077f976bd9b3c948ee2b
Source-Link: googleapis/synthtool@1f1148d
  • Loading branch information
yoshi-automation committed Nov 12, 2020
1 parent 27476a8 commit b3a5044
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions samples/snippets/noxfile.py
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
4 changes: 2 additions & 2 deletions synth.metadata
Expand Up @@ -19,14 +19,14 @@
"git": {
"name": "synthtool",
"remote": "https://github.com/googleapis/synthtool.git",
"sha": "3d3e94c4e02370f307a9a200b0c743c3d8d19f29"
"sha": "1f1148d3c7a7a52f0c98077f976bd9b3c948ee2b"
}
},
{
"git": {
"name": "synthtool",
"remote": "https://github.com/googleapis/synthtool.git",
"sha": "3d3e94c4e02370f307a9a200b0c743c3d8d19f29"
"sha": "1f1148d3c7a7a52f0c98077f976bd9b3c948ee2b"
}
}
],
Expand Down

0 comments on commit b3a5044

Please sign in to comment.