mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-08 04:34:16 +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
|
# naively match the entire file, low chance of incorrect
|
||||||
# collision
|
# collision
|
||||||
if key in text_body:
|
if key in text_body:
|
||||||
bad_files.append({'filename': filename,
|
bad_files.append({
|
||||||
'key': key[:4] + '*' * 28})
|
'filename': filename, 'key': key[:4] + '*' * 28,
|
||||||
|
})
|
||||||
return bad_files
|
return bad_files
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -86,8 +87,9 @@ def main(argv=None):
|
||||||
'--credentials-file',
|
'--credentials-file',
|
||||||
dest='credential_files',
|
dest='credential_files',
|
||||||
action='append',
|
action='append',
|
||||||
default=['~/.aws/config', '~/.aws/credentials', '/etc/boto.cfg',
|
default=[
|
||||||
'~/.boto'],
|
'~/.aws/config', '~/.aws/credentials', '/etc/boto.cfg', '~/.boto',
|
||||||
|
],
|
||||||
help=(
|
help=(
|
||||||
'Location of additional AWS credential files from which to get '
|
'Location of additional AWS credential files from which to get '
|
||||||
'secret keys from'
|
'secret keys from'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue