Skip to content

Commit 0614241

Browse files
committed
Only run Black on modified files
This restores the intelligent file selection that the previous formatter was set up to use.
1 parent 697b249 commit 0614241

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tooling/src/hypothesistooling/__main__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ def should_format_file(path):
216216
o.write("\n")
217217
pip_tool("isort", *files_to_format)
218218

219-
pip_tool("black", tools.ROOT)
219+
pip_tool("black", *files_to_format)
220220

221221

222222
VALID_STARTS = ("# coding=utf-8", "#!/usr/bin/env python")

0 commit comments

Comments
 (0)