From f9dc288a936addae4d81c88a8455109c35d467d1 Mon Sep 17 00:00:00 2001 From: Manu Raghavan Date: Wed, 10 Jun 2020 16:14:00 +0530 Subject: [PATCH] debug --- pre_commit_hooks/no_commit_keywords.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pre_commit_hooks/no_commit_keywords.py b/pre_commit_hooks/no_commit_keywords.py index 2f942fb..9f7e48f 100644 --- a/pre_commit_hooks/no_commit_keywords.py +++ b/pre_commit_hooks/no_commit_keywords.py @@ -11,6 +11,9 @@ def check_for_no_commit_tokens( ) -> str: with open(filename, mode='r', encoding='utf-8') as file_processed: lines = file_processed.read() + print(f"filename : {filename}") + if filename == "README.md": + print(lines) print(f"check_for#tokens - {tokens}") for token in tokens: match = re.search(token, lines)