From 1265d820fdd27042affbb56565305580f566860c Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 29 Feb 2024 15:18:13 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/sourmash/commands.py | 2 +- tests/test_sourmash.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sourmash/commands.py b/src/sourmash/commands.py index a96c34dd50..0b25f34d5e 100644 --- a/src/sourmash/commands.py +++ b/src/sourmash/commands.py @@ -1234,7 +1234,7 @@ def multigather(args): output_base = query.md5sum() elif args.output_add_query_md5sum: # Uniquify the output file if all signatures were made from the same file (e.g. with --singleton) - assert query_filename and query_filename != '-' # first branch + assert query_filename and query_filename != "-" # first branch output_base = os.path.basename(query_filename) + "." + query.md5sum() else: output_base = os.path.basename(query_filename) diff --git a/tests/test_sourmash.py b/tests/test_sourmash.py index 26ae54f69a..fc083a21e5 100644 --- a/tests/test_sourmash.py +++ b/tests/test_sourmash.py @@ -5418,9 +5418,9 @@ def test_multigather_metagenome_output_unique(runtmp): # change 'filename' on 'combined.sig' to something else orig_query_sig = utils.get_test_data("gather/combined.sig") sketch = sourmash.load_one_signature(orig_query_sig) - ss = signature.SourmashSignature(sketch.minhash, filename='named_query') + ss = signature.SourmashSignature(sketch.minhash, filename="named_query") - query_sig = runtmp.output('the_query.sig') + query_sig = runtmp.output("the_query.sig") with open(query_sig, "w") as f: signature.save_signatures([ss], f)