Skip to content

Commit

Permalink
make sure descr is one line
Browse files Browse the repository at this point in the history
  • Loading branch information
ctb committed Aug 1, 2023
1 parent 1692456 commit 288819e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/sourmash/plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,11 @@ def get_cli_scripts_descriptions():
script_cls = plugin.load()

command = getattr(script_cls, 'command')
description = getattr(script_cls, 'description',
f"(no description provided by plugin '{name}')")
description = getattr(script_cls, 'description', "")
description = description.splitlines()[0]

Check warning on line 142 in src/sourmash/plugins.py

View check run for this annotation

Codecov / codecov/patch

src/sourmash/plugins.py#L141-L142

Added lines #L141 - L142 were not covered by tests
if not description:
description = f"(no description provided by plugin '{name}')"

Check warning on line 144 in src/sourmash/plugins.py

View check run for this annotation

Codecov / codecov/patch

src/sourmash/plugins.py#L144

Added line #L144 was not covered by tests

yield f"sourmash scripts {command:16s} - {description}"


Expand Down

0 comments on commit 288819e

Please sign in to comment.