mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-03-29 10:16:52 +00:00
Formatting fixups
This commit is contained in:
parent
47996656b4
commit
5da199bb8d
1 changed files with 6 additions and 4 deletions
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue