From 61c22e1ba5d13555b25744e4c9713869f1841574 Mon Sep 17 00:00:00 2001 From: Nolan Hawkins Date: Thu, 18 Aug 2022 16:19:37 -0400 Subject: [PATCH] Remove period from 'Stashing unstaged files to {patch_filename}.' This extra period makes it ever so slightly more difficult to copy the path in the rare circumstance where I actually care about the path. --- 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 83d8a03e..8c01d7bf 100644 --- a/pre_commit/staged_files_only.py +++ b/pre_commit/staged_files_only.py @@ -58,7 +58,7 @@ def _unstaged_changes_cleared(patch_dir: str) -> Generator[None, None, None]: patch_filename = f'patch{int(time.time())}-{os.getpid()}' patch_filename = os.path.join(patch_dir, patch_filename) logger.warning('Unstaged files detected.') - logger.info(f'Stashing unstaged files to {patch_filename}.') + logger.info(f'Stashing unstaged files to {patch_filename}') # Save the current unstaged changes as a patch os.makedirs(patch_dir, exist_ok=True) with open(patch_filename, 'wb') as patch_file: