From 512e71dd1a6187f9a44fde05b2f55551c54df255 Mon Sep 17 00:00:00 2001 From: droctothorpe Date: Wed, 23 Mar 2022 15:41:59 -0400 Subject: [PATCH] Default allow_missing_credentials flag to True --- pre_commit_hooks/detect_aws_credentials.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pre_commit_hooks/detect_aws_credentials.py b/pre_commit_hooks/detect_aws_credentials.py index 4f59d9c..fc28483 100644 --- a/pre_commit_hooks/detect_aws_credentials.py +++ b/pre_commit_hooks/detect_aws_credentials.py @@ -107,6 +107,7 @@ def main(argv: Sequence[str] | None = None) -> int: parser.add_argument( '--allow-missing-credentials', dest='allow_missing_credentials', + default=True, action='store_true', help='Allow hook to pass when no credentials are detected.', )