Skip to content

Commit

Permalink
chore(python): run blacken session for all directories with a noxfile (
Browse files Browse the repository at this point in the history
  • Loading branch information
parthea committed Nov 11, 2021
1 parent 3778377 commit bc0de6e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion synthtool/languages/python.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,9 @@ def owlbot_main() -> None:

py_samples(skip_readmes=True)

s.shell.run(["nox", "-s", "blacken"], hide_output=False)
# run blacken session for all directories which a noxfile
for noxfile in Path(".").glob("**/noxfile.py"):
s.shell.run(["nox", "-s", "blacken"], cwd=noxfile.parent, hide_output=False)


if __name__ == "__main__":
Expand Down

0 comments on commit bc0de6e

Please sign in to comment.