From f3e30a0949935b9578369f70742de198d56c8359 Mon Sep 17 00:00:00 2001 From: Lena Wildervanck Date: Fri, 19 May 2023 17:54:42 +0200 Subject: [PATCH] Add pragma no cover --- pre_commit/staged_files_only.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pre_commit/staged_files_only.py b/pre_commit/staged_files_only.py index 2c33abd7..b213ba45 100644 --- a/pre_commit/staged_files_only.py +++ b/pre_commit/staged_files_only.py @@ -54,7 +54,7 @@ def _unstaged_changes_cleared(patch_dir: str) -> Generator[None, None, None]: (sys.platform == 'darwin' or sys.platform == 'win32') and os.path.exists('./.git/fsmonitor--daemon.ipc') and cmd_output_b('git', 'fsmonitor--daemon', 'status')[0] == 0 - ): + ): # pragma: no cover logger.warning( 'The fsmonitor daemon is running; ' 'a bug in the fsmonitor daemon sometimes causes data loss '