Skip to content

Commit 95dbd9e

Browse files
ci(pre-commit): Apply automatic fixes
1 parent 67e3365 commit 95dbd9e

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

tools/get.py

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ def verify_files(filename, destination, rename_to):
146146

147147
return True
148148

149+
149150
def is_latest_version(destination, dirname, rename_to, cfile, checksum):
150151
current_version = None
151152
expected_version = None
@@ -174,6 +175,7 @@ def is_latest_version(destination, dirname, rename_to, cfile, checksum):
174175

175176
return False
176177

178+
177179
def unpack(filename, destination, force_extract, checksum): # noqa: C901
178180
dirname = ""
179181
cfile = None # Compressed file
@@ -409,21 +411,17 @@ def identify_platform():
409411
if __name__ == "__main__":
410412
parser = argparse.ArgumentParser(description="Download and extract tools")
411413

412-
parser.add_argument("-v", "--verbose", action='store_true', required=False, help="Print verbose output")
414+
parser.add_argument("-v", "--verbose", action="store_true", required=False, help="Print verbose output")
413415

414-
parser.add_argument(
415-
"-d", "--force_download", action='store_true', required=False, help="Force download of tools"
416-
)
416+
parser.add_argument("-d", "--force_download", action="store_true", required=False, help="Force download of tools")
417417

418-
parser.add_argument(
419-
"-e", "--force_extract", action='store_true', required=False, help="Force extraction of tools"
420-
)
418+
parser.add_argument("-e", "--force_extract", action="store_true", required=False, help="Force extraction of tools")
421419

422420
parser.add_argument(
423-
"-f", "--force_all", action='store_true', required=False, help="Force download and extraction of tools"
421+
"-f", "--force_all", action="store_true", required=False, help="Force download and extraction of tools"
424422
)
425423

426-
parser.add_argument("-t", "--test", action='store_true', required=False, help=argparse.SUPPRESS)
424+
parser.add_argument("-t", "--test", action="store_true", required=False, help=argparse.SUPPRESS)
427425

428426
args = parser.parse_args()
429427

0 commit comments

Comments
 (0)