From c919a1d628acebd656f2c75057a4d5020ec464e3 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 18 May 2023 23:32:48 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- pre_commit/staged_files_only.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pre_commit/staged_files_only.py b/pre_commit/staged_files_only.py index 818f6ded..37d8c3c4 100644 --- a/pre_commit/staged_files_only.py +++ b/pre_commit/staged_files_only.py @@ -51,14 +51,15 @@ def _intent_to_add_cleared() -> Generator[None, None, None]: @contextlib.contextmanager def _unstaged_changes_cleared(patch_dir: str) -> Generator[None, None, None]: if ( - (sys.platform == 'darwin' or sys.platform == 'win32') - and os.path.exists('./.git/fsmonitor--daemon.ipc') - and cmd_output('git', 'fsmonitor--daemon', 'status')[0] == 0 + (sys.platform == 'darwin' or sys.platform == 'win32') and + os.path.exists('./.git/fsmonitor--daemon.ipc') and + cmd_output('git', 'fsmonitor--daemon', 'status')[0] == 0 ): logger.warning( "The fsmonitor daemon is running; " "a bug in the fsmonitor daemon sometimes causes data loss " - "when running with pre-commit.") + "when running with pre-commit.", + ) tree = cmd_output('git', 'write-tree')[1].strip() diff_cmd = (