From 3ee9ebb0916d76be904c948d62e9b55f569b6f98 Mon Sep 17 00:00:00 2001 From: Josh Holland Date: Thu, 29 Mar 2018 23:21:18 +0100 Subject: [PATCH] Fix --check with multiple files (#88) Passing multiple files to --check would previously result in the report being printed as if the files had been written to. --- black.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/black.py b/black.py index 434bc33..dab3f00 100644 --- a/black.py +++ b/black.py @@ -181,7 +181,7 @@ async def schedule_formatting( } await asyncio.wait(tasks.values()) cancelled = [] - report = Report() + report = Report(check=not write_back) for src, task in tasks.items(): if not task.done(): report.failed(src, 'timed out, cancelling') -- 2.39.2