Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 29, 2024
1 parent 839f4ef commit 1265d82
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/sourmash/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions tests/test_sourmash.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 1265d82

Please sign in to comment.