From: Josh Holland Date: Thu, 29 Mar 2018 22:21:18 +0000 (+0100) Subject: Fix --check with multiple files (#88) X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/3ee9ebb0916d76be904c948d62e9b55f569b6f98?ds=sidebyside 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. --- 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')