chore: fix linter errors (#25996)
This commit is contained in:
parent
05b5c197ae
commit
c27e5fdbb6
6 changed files with 37 additions and 20 deletions
|
@ -20,7 +20,10 @@ def parse_args():
|
|||
|
||||
parser.add_argument('--base-url', required=False,
|
||||
help="Base URL for all downloads")
|
||||
parser.add_argument('--force', action='store_true', default=False, required=False)
|
||||
parser.add_argument('--force',
|
||||
action='store_true',
|
||||
default=False,
|
||||
required=False)
|
||||
|
||||
return parser.parse_args()
|
||||
|
||||
|
@ -111,7 +114,9 @@ def download_binary(base_url, sha, binary_name, attempt=3):
|
|||
def validate_sha(file_path, sha):
|
||||
downloaded_sha = sha256(file_path)
|
||||
if downloaded_sha != sha:
|
||||
raise Exception("SHA for external binary file {} does not match expected '{}' != '{}'".format(file_path, downloaded_sha, sha))
|
||||
raise Exception("SHA for external binary file {} does not match "
|
||||
"expected '{}' != '{}'".format(
|
||||
file_path, downloaded_sha, sha))
|
||||
|
||||
|
||||
def download_to_temp_dir(url, filename, sha):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue