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 '