Skip to content

Commit 0e651ba

Browse files
ci(pre-commit): Apply automatic fixes
1 parent ba98f0c commit 0e651ba

File tree

1 file changed

+17
-31
lines changed

1 file changed

+17
-31
lines changed

tools/get.py

+17-31
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def verify_files(filename, destination, rename_to):
138138
for i, zipped_file in enumerate(archive.getnames(), 1):
139139
local_path = os.path.join(extracted_dir_path, zipped_file.replace(first_dir, rename_to, 1))
140140
if not os.path.exists(local_path):
141-
print(f'\nMissing {zipped_file} on location: {extracted_dir_path}')
141+
print(f"\nMissing {zipped_file} on location: {extracted_dir_path}")
142142
print(f"Verification failed; aborted in {format_time(time.time() - t1)}")
143143
return False
144144
print_verification_progress(total_files, i, t1)
@@ -155,7 +155,7 @@ def verify_files(filename, destination, rename_to):
155155

156156
def unpack(filename, destination, force_extract):
157157
dirname = ""
158-
cfile = None # Compressed file
158+
cfile = None # Compressed file
159159
file_is_corrupted = False
160160
if not force_extract:
161161
print(" > Verify archive... ", end="", flush=True)
@@ -379,35 +379,21 @@ def identify_platform():
379379
if __name__ == "__main__":
380380
parser = argparse.ArgumentParser(description="Download and extract tools")
381381

382-
parser.add_argument("-v", "--verbose",
383-
type=bool,
384-
default=False,
385-
required=False,
386-
help="Print verbose output")
387-
388-
parser.add_argument("-d", "--force_download",
389-
type=bool,
390-
default=False,
391-
required=False,
392-
help="Force download of tools")
393-
394-
parser.add_argument("-e", "--force_extract",
395-
type=bool,
396-
default=False,
397-
required=False,
398-
help="Force extraction of tools")
399-
400-
parser.add_argument("-f", "--force_all",
401-
type=bool,
402-
default=False,
403-
required=False,
404-
help="Force download and extraction of tools")
405-
406-
parser.add_argument("-t", "--test",
407-
type=bool,
408-
default=False,
409-
required=False,
410-
help=argparse.SUPPRESS)
382+
parser.add_argument("-v", "--verbose", type=bool, default=False, required=False, help="Print verbose output")
383+
384+
parser.add_argument(
385+
"-d", "--force_download", type=bool, default=False, required=False, help="Force download of tools"
386+
)
387+
388+
parser.add_argument(
389+
"-e", "--force_extract", type=bool, default=False, required=False, help="Force extraction of tools"
390+
)
391+
392+
parser.add_argument(
393+
"-f", "--force_all", type=bool, default=False, required=False, help="Force download and extraction of tools"
394+
)
395+
396+
parser.add_argument("-t", "--test", type=bool, default=False, required=False, help=argparse.SUPPRESS)
411397

412398
args = parser.parse_args()
413399

0 commit comments

Comments
 (0)