Skip to content

Commit bc0de6e

Browse files
authored
chore(python): run blacken session for all directories with a noxfile (#1276)
1 parent 3778377 commit bc0de6e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

synthtool/languages/python.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,9 @@ def owlbot_main() -> None:
192192

193193
py_samples(skip_readmes=True)
194194

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

197199

198200
if __name__ == "__main__":

0 commit comments

Comments
 (0)