Skip to content

Commit

Permalink
style: apply black (again?)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsstevenson committed Mar 28, 2024
1 parent 9c597be commit 8e0e521
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
10 changes: 3 additions & 7 deletions src/biocommons/seqrepo/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def parse_arguments():
top_p = argparse.ArgumentParser(
description=__doc__.split("\n\n")[0],
formatter_class=argparse.ArgumentDefaultsHelpFormatter,
epilog=epilog
epilog=epilog,
)
top_p.add_argument("--dry-run", "-n", default=False, action="store_true")
top_p.add_argument("--remote-host", default="dl.biocommons.org", help="rsync server host")
Expand Down Expand Up @@ -587,15 +587,11 @@ def show_status(opts):
)
print(
"sequences: {ss[n_sequences]} sequences, {ss[tot_length]} residues, "
"{ss[n_files]} files".format(
ss=sr.sequences.stats()
)
"{ss[n_files]} files".format(ss=sr.sequences.stats())
)
print(
"aliases: {sa[n_aliases]} aliases, {sa[n_current]} current, "
"{sa[n_namespaces]} namespaces, {sa[n_sequences]} sequences".format(
sa=sr.aliases.stats()
)
"{sa[n_namespaces]} namespaces, {sa[n_sequences]} sequences".format(sa=sr.aliases.stats())
)
return sr

Expand Down
4 changes: 1 addition & 3 deletions src/biocommons/seqrepo/fastadir/fabgz.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,7 @@ def _find_bgzip():
except missing_file_exception:
raise RuntimeError(
"{exe} doesn't exist; you need to install htslib and tabix "
"(See https://github.com/biocommons/biocommons.seqrepo#requirements)".format(
exe=exe
)
"(See https://github.com/biocommons/biocommons.seqrepo#requirements)".format(exe=exe)
)
except Exception:
raise RuntimeError("Unknown error while executing {exe}".format(exe=exe))
Expand Down

0 comments on commit 8e0e521

Please sign in to comment.