From 467df5104c35f6329f7d6bb433c67d77017b4fc1 Mon Sep 17 00:00:00 2001 From: Jackie Goldstein Date: Mon, 8 Jan 2024 12:32:37 -0500 Subject: [PATCH] delint --- hail/python/hailtop/hailctl/batch/submit.py | 11 +++++++---- hail/python/test/hailtop/hailctl/batch/test_submit.py | 10 +++++++--- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/hail/python/hailtop/hailctl/batch/submit.py b/hail/python/hailtop/hailctl/batch/submit.py index 0791481c6fb..7c1eabca9d8 100644 --- a/hail/python/hailtop/hailctl/batch/submit.py +++ b/hail/python/hailtop/hailctl/batch/submit.py @@ -75,10 +75,13 @@ def file_input_to_src_dest(file: str) -> Tuple[str, str, str]: assert False, str(local_files_to_cloud_files) - await copy_from_dict(files=[ - {'from': script_src, 'to': script_cloud_file}, - {'from': user_config_src, 'to': user_config_cloud_file}, - *local_files_to_cloud_files]) + await copy_from_dict( + files=[ + {'from': script_src, 'to': script_cloud_file}, + {'from': user_config_src, 'to': user_config_cloud_file}, + *local_files_to_cloud_files, + ] + ) script_file = b.read_input(script_cloud_file) config_file = b.read_input(user_config_cloud_file) diff --git a/hail/python/test/hailtop/hailctl/batch/test_submit.py b/hail/python/test/hailtop/hailctl/batch/test_submit.py index 03a243134ac..bb9976f956c 100644 --- a/hail/python/test/hailtop/hailctl/batch/test_submit.py +++ b/hail/python/test/hailtop/hailctl/batch/test_submit.py @@ -14,14 +14,16 @@ def runner(): def write_script(dir: str, filename: str): with open(f'{dir}/test_job.py', 'w') as f: - f.write(f''' + f.write( + f''' import hailtop.batch as hb b = hb.Batch() j = b.new_job() j.command('cat {filename}') b.run(wait=False) backend.close() -''') +''' + ) def write_hello(filename: str): @@ -72,7 +74,9 @@ def test_mount_multiple_files(runner: CliRunner): write_hello(f'{dir}/child/hello1.txt') write_hello(f'{dir}/child/hello2.txt') write_script(dir, '/hello1.txt') - res = runner.invoke(cli.app, ['submit', '--files', 'child/hello1.txt:/', '--files', 'child/hello2.txt:/', 'test_job.py']) + res = runner.invoke( + cli.app, ['submit', '--files', 'child/hello1.txt:/', '--files', 'child/hello2.txt:/', 'test_job.py'] + ) assert res.exit_code == 0