From d33733ade0ee5805b824a58248a9b4871dc5b887 Mon Sep 17 00:00:00 2001 From: Manu Raghavan Date: Wed, 10 Jun 2020 16:17:21 +0530 Subject: [PATCH] debug --- pre_commit_hooks/no_commit_keywords.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/pre_commit_hooks/no_commit_keywords.py b/pre_commit_hooks/no_commit_keywords.py index 9f7e48f..a1221c4 100644 --- a/pre_commit_hooks/no_commit_keywords.py +++ b/pre_commit_hooks/no_commit_keywords.py @@ -11,13 +11,8 @@ 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) - print(f"check_for#token,match - {token}, {match}") if match: # no-commit token is present # return offending token @@ -38,7 +33,6 @@ def main(argv: Optional[Sequence[str]] = None) -> int: args = parser.parse_args(argv) return_code = 0 - print(f"tokens - {args.tokens}") if args.tokens: tokens = args.tokens.split(",")