Skip to content

Commit 5da199b

Browse files
committed
Formatting fixups
1 parent 4799665 commit 5da199b

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

pre_commit_hooks/detect_aws_credentials.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,9 @@ def check_file_for_aws_keys(filenames, keys):
7474
# naively match the entire file, low chance of incorrect
7575
# collision
7676
if key in text_body:
77-
bad_files.append({'filename': filename,
78-
'key': key[:4] + '*' * 28})
77+
bad_files.append({
78+
'filename': filename, 'key': key[:4] + '*' * 28,
79+
})
7980
return bad_files
8081

8182

@@ -86,8 +87,9 @@ def main(argv=None):
8687
'--credentials-file',
8788
dest='credential_files',
8889
action='append',
89-
default=['~/.aws/config', '~/.aws/credentials', '/etc/boto.cfg',
90-
'~/.boto'],
90+
default=[
91+
'~/.aws/config', '~/.aws/credentials', '/etc/boto.cfg', '~/.boto',
92+
],
9193
help=(
9294
'Location of additional AWS credential files from which to get '
9395
'secret keys from'

0 commit comments

Comments
 (0)