From 5da199bb8d60f764c0f77a20b0a1dc3a7640bcdd Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Tue, 3 Jan 2017 13:13:44 -0800 Subject: [PATCH] Formatting fixups --- pre_commit_hooks/detect_aws_credentials.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pre_commit_hooks/detect_aws_credentials.py b/pre_commit_hooks/detect_aws_credentials.py index a7847b9..b0826ca 100644 --- a/pre_commit_hooks/detect_aws_credentials.py +++ b/pre_commit_hooks/detect_aws_credentials.py @@ -74,8 +74,9 @@ def check_file_for_aws_keys(filenames, keys): # naively match the entire file, low chance of incorrect # collision if key in text_body: - bad_files.append({'filename': filename, - 'key': key[:4] + '*' * 28}) + bad_files.append({ + 'filename': filename, 'key': key[:4] + '*' * 28, + }) return bad_files @@ -86,8 +87,9 @@ def main(argv=None): '--credentials-file', dest='credential_files', action='append', - default=['~/.aws/config', '~/.aws/credentials', '/etc/boto.cfg', - '~/.boto'], + default=[ + '~/.aws/config', '~/.aws/credentials', '/etc/boto.cfg', '~/.boto', + ], help=( 'Location of additional AWS credential files from which to get ' 'secret keys from'