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.', )